Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: 'Build docs 📚'
permissions:
contents: read
actions: read

on: [push]

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ permissions:
contents: read
pages: write
id-token: write
actions: read

concurrency:
group: pages
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
permissions:
id-token: write
contents: read
actions: read
jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 5 additions & 1 deletion src/components/BaseInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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';
});
Expand Down Expand Up @@ -668,7 +672,7 @@ defineExpose({
text-align: start;
color: tokens.$n-600;
width: 100%;
resize: vertical;
resize: v-bind(resizeType);
Comment on lines 672 to +675
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Resize mobile incompleto O novo resizeType só é aplicado ao campo renderizado por BaseInput. Quando floatingLabel é true, este componente renderiza CdsBaseMobileInput, e esse caminho ainda mantém resize: vertical para todos os tipos de input. Assim, TextInput, NumberInput e outros componentes em modo floatingLabel/mobile continuam redimensionáveis no Firefox, mantendo o comportamento que este PR tenta remover.

Rule Used: What: Sempre responda em português (PT-BR) durante... (source)

cursor: v-bind(computedCursor);
background-color: transparent;
line-height: 1.5;
Expand Down
6 changes: 5 additions & 1 deletion src/components/BaseMobileInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);

Expand Down
Loading