Skip to content

Commit

Permalink
fix: undo changing background for readonly input controls
Browse files Browse the repository at this point in the history
  • Loading branch information
polikashina committed Aug 16, 2024
1 parent f5d0fb6 commit 8cd9fc5
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions src/components/controls/TextArea/TextArea.scss
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,6 @@ $block: '.#{variables.$ns}text-area';
$append: false
);

&_readonly {
--_--background-color: var(--g-color-base-generic-accent-disabled);
--_--border-color: transparent;
}

&_disabled {
--_--text-color: var(--g-color-text-hint);
--_--background-color: var(--g-color-base-generic-accent-disabled);
Expand Down
1 change: 0 additions & 1 deletion src/components/controls/TextArea/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ export const TextArea = React.forwardRef<HTMLSpanElement, TextAreaProps>(
{
view,
size,
readonly: readOnly,
disabled,
state,
pin: view === 'clear' ? undefined : pin,
Expand Down
5 changes: 0 additions & 5 deletions src/components/controls/TextInput/TextInput.scss
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,6 @@ $block: '.#{variables.$ns}text-input';
$append: false
);

&_readonly {
--_--background-color: var(--g-color-base-generic-accent-disabled);
--_--border-color: transparent;
}

&_disabled {
--_--text-color: var(--g-color-text-hint);
--_--background-color: var(--g-color-base-generic-accent-disabled);
Expand Down
1 change: 0 additions & 1 deletion src/components/controls/TextInput/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ export const TextInput = React.forwardRef<HTMLSpanElement, TextInputProps>(
{
view,
size,
readonly: readOnly,
disabled,
state,
pin: view === 'clear' ? undefined : pin,
Expand Down

0 comments on commit 8cd9fc5

Please sign in to comment.