Skip to content

Is there any way to disable focus outline around the elements for all elements? #1448

Answered by metonym
radiorambo asked this question in Q&A
Discussion options

You must be logged in to vote

The focus outline exists for accessibility. As such, it's not recommended to remove them entirely.

If using the all.css stylesheet, you can customize the --cds-focus color.

html {
  --cds-focus: #ccc;
}

If you must remove it, the easier way would be to set the color to be transparent.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by metonym
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1446 on August 15, 2022 17:39.