-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
34 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
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 |
---|---|---|
@@ -1,24 +1,26 @@ | ||
/** | ||
@layer fds.utility { | ||
/** | ||
* Visually hide an element, but leave it available for screen readers | ||
*/ | ||
.visuallyHidden { | ||
border: 0; | ||
clip: rect(0 0 0 0); | ||
height: 1px; | ||
overflow: hidden; | ||
padding: 0; | ||
position: absolute; | ||
white-space: nowrap; | ||
width: 1px; | ||
} | ||
.visuallyHidden { | ||
border: 0; | ||
clip: rect(0 0 0 0); | ||
height: 1px; | ||
overflow: hidden; | ||
padding: 0; | ||
position: absolute; | ||
white-space: nowrap; | ||
width: 1px; | ||
} | ||
|
||
/** | ||
/** | ||
* Apply a focus outline on an element when it is focused with keyboard | ||
*/ | ||
.focusable:focus-visible { | ||
--fds-focus-border-width: 3px; | ||
.focusable:focus-visible { | ||
--fds-focus-border-width: 3px; | ||
|
||
outline: var(--fds-focus-border-width) solid var(--fds-semantic-border-focus-outline); | ||
outline-offset: var(--fds-focus-border-width); | ||
box-shadow: 0 0 0 var(--fds-focus-border-width) var(--fds-semantic-border-focus-boxshadow); | ||
outline: var(--fds-focus-border-width) solid var(--fds-semantic-border-focus-outline); | ||
outline-offset: var(--fds-focus-border-width); | ||
box-shadow: 0 0 0 var(--fds-focus-border-width) var(--fds-semantic-border-focus-boxshadow); | ||
} | ||
} |