Skip to content

Commit

Permalink
feat: using outline styles for select
Browse files Browse the repository at this point in the history
  • Loading branch information
Kezhik Kyzyl-ool committed Feb 8, 2024
1 parent bb85877 commit 1b1769d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Select/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1123,3 +1123,9 @@ LANDING_BLOCK-->
| errorMessage | Error text | `string` | |
| errorPlacement | Error placement | `outside` `inside` | `outside` |
| validationState | Validation state | `"invalid"` | |

## CSS API

| Name | Description |
| :------------------------------- | :----------------------- |
| `--g-select-outline-color-focus` | Outline color if focused |
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,14 @@ $blockButton: '.#{variables.$ns}select-control__button';
&:not(&_error):not(&_view_clear):focus-visible::before {
border-color: var(--g-color-line-generic-active);
}

&:focus::before {
outline: 2px solid var(--g-select-outline-color-focus);
outline-offset: -1px;
}
&:focus:not(:focus-visible)::before {
outline: 0;
}
}

&:not(&_disabled):not(&_no-active):active {
Expand Down

0 comments on commit 1b1769d

Please sign in to comment.