Skip to content

Commit 1a2db2f

Browse files
authored
[A11y] Improve color contrast of focus outline on Firefox (#8295)
Improve the color contrast of Firefox's outline for focused items. This effectively reverts c245f2c as Firefox now properly outlines elements. Chromium browsers (Chrome, Edgium, Opera) are all unaffected by this change. I also verified that Internet Explorer's focus outlines pass the 3:1 color contrast requirement.
1 parent fa9258b commit 1a2db2f

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

src/Bootstrap/dist/css/bootstrap.css

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Bootstrap/less/mixins/tab-focus.less

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// WebKit-specific. Other browsers will keep their default outline style.
55
// (Initially tried to also force default via `outline: initial`,
66
// but that seems to erroneously remove the outline in Firefox altogether.)
7-
// The next line came from: https://stackoverflow.com/a/38571103
8-
outline: 2px auto Highlight;
97
outline: 5px auto -webkit-focus-ring-color;
108
outline-offset: -2px;
119
}

0 commit comments

Comments
 (0)