-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(styles): Hide focus state when unnecessary and make design more c…
…oherent (#2810) Currently, forms elements like checkbox, radio, switch show focus styles on `:focus` state while others like buttons show only on `:focus-visible` state. This is an improvement using `:has` to make the design more coherent and simulate `:focus-visible` instead of using `:focus-within` as there is no `:focus-visible:within` unfortunately. We'll quickly discuss it on the pattern meeting.
- Loading branch information
Showing
2 changed files
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@swisspost/design-system-styles': patch | ||
--- | ||
|
||
Refactored the new focus style to only be visible when using keyboard for form elements. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters