diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index fc024562..da213c9d 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -1,6 +1,7 @@ name: 'Build docs 📚' permissions: contents: read + actions: read on: [push] diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 774bcfd8..511d44a5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,6 +10,7 @@ permissions: contents: read pages: write id-token: write + actions: read concurrency: group: pages diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e757b53c..64e81444 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,6 +6,7 @@ on: permissions: id-token: write contents: read + actions: read jobs: build: runs-on: ubuntu-latest diff --git a/package.json b/package.json index 4ab123ab..12793b4c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sysvale/cuida", - "version": "3.158.2", + "version": "3.158.3", "description": "A design system built by Sysvale, using storybook and Vue components", "repository": { "type": "git", diff --git a/src/components/BaseInput.vue b/src/components/BaseInput.vue index ffd52562..6ef8659b 100644 --- a/src/components/BaseInput.vue +++ b/src/components/BaseInput.vue @@ -450,6 +450,10 @@ const inputTopPadding = computed(() => { return props.type === 'textarea' ? '8px' : '14px'; }); +const resizeType = computed(() => { + return props.type === 'textarea' ? 'vertical' : 'none'; +}); + const hasError = computed(() => { return props.state === 'invalid'; }); @@ -668,7 +672,7 @@ defineExpose({ text-align: start; color: tokens.$n-600; width: 100%; - resize: vertical; + resize: v-bind(resizeType); cursor: v-bind(computedCursor); background-color: transparent; line-height: 1.5; diff --git a/src/components/BaseMobileInput.vue b/src/components/BaseMobileInput.vue index 43b79f34..ca23e161 100644 --- a/src/components/BaseMobileInput.vue +++ b/src/components/BaseMobileInput.vue @@ -532,6 +532,10 @@ const shouldShowLink = computed(() => ( && props.supportLinkUrl.length )); +const resizeType = computed(() => { + return props.type === 'textarea' ? 'vertical' : 'none'; +}); + /* WATCHERS */ watch(model, (newValue, oldValue) => { if (newValue !== oldValue) { @@ -694,7 +698,7 @@ defineExpose({ text-align: start; color: tokens.$n-700; width: 100%; - resize: vertical; + resize: v-bind(resizeType); font-size: 14.5px; cursor: v-bind(computedCursor);