Skip to content

Commit

Permalink
fix(accessibility): fixed visibility of the arrow-icon in high contra…
Browse files Browse the repository at this point in the history
…st mode
  • Loading branch information
alionazherdetska committed Dec 18, 2024
1 parent 7e2fd1a commit eb1b9b1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/styles/src/components/form-select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ tokens.$default-map: components.$post-select;
@include utilities.high-contrast-mode {
border-color: FieldText;
}

@include utilities.high-contrast-mode-dark() {
@include forms.select-bg-image('selected-hcm', $mode: dark);
}
}

&:hover {
Expand Down Expand Up @@ -79,6 +83,15 @@ tokens.$default-map: components.$post-select;
}
}


@include utilities.high-contrast-mode-light() {
@include forms.select-bg-image('enabled-hcm', $mode: light);
}

@include utilities.high-contrast-mode-dark() {
@include forms.select-bg-image('enabled-hcm', $mode: dark);
}

&.is-valid,
&.is-invalid {
&:not(:disabled) {
Expand Down
3 changes: 3 additions & 0 deletions packages/styles/src/mixins/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
'selected-dark': #fff,
'disabled-light': #696864,
'disabled-dark': #fff,
'enabled-hcm-light': #050400,
'enabled-hcm-dark': #fff,
'selected-hcm-dark': #fff,
);

@if ($validation == 'valid') {
Expand Down

0 comments on commit eb1b9b1

Please sign in to comment.