Skip to content

Commit

Permalink
fix: double disabled opacity (#8123)
Browse files Browse the repository at this point in the history
h2. Описание

FormField и Input накладывает прозрачность на текст, из-за чего текст более прозрачен чем должен быть

h2. Изменения

Убираем двойную прозрачность при состоянии `disabled`

h2. Release notes
h2. Исправления
- Поправлена двойная прозрачность у элементов ввода
  • Loading branch information
SevereCloud authored and actions-user committed Jan 10, 2025
1 parent dcea44d commit 25c98b1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@
display: none;
}

.el:disabled {
opacity: var(--vkui--opacity_disable_accessibility);
}

.el::placeholder {
color: var(--vkui--color_text_secondary);
/* Для Firefox */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@
padding-inline-end: 0;
}

.el:disabled {
opacity: var(--vkui--opacity_disable_accessibility);
}

.container {
z-index: var(--vkui_internal--z_index_form_field_element);
inline-size: 100%;
Expand Down
4 changes: 0 additions & 4 deletions packages/vkui/src/components/Input/Input.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@
padding-inline-end: 0;
}

.el:disabled {
opacity: var(--vkui--opacity_disable_accessibility);
}

.el::placeholder {
color: var(--vkui--color_text_secondary);
/* Для Firefox */
Expand Down
4 changes: 0 additions & 4 deletions packages/vkui/src/components/Textarea/Textarea.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@
opacity: 1;
}

.el:disabled {
opacity: var(--vkui--opacity_disable_accessibility);
}

.el:disabled::placeholder {
color: var(--vkui--color_text_secondary);
}
Expand Down

0 comments on commit 25c98b1

Please sign in to comment.