0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-28 10:24:19 +01:00

Suppress focus outline for buttons when it shouldn't be visible in Chromium

Manual backport of https://github.com/twbs/bootstrap/pull/32689
This commit is contained in:
Patrick H. Lauke 2021-01-10 14:41:49 +00:00 committed by XhmikosR
parent 4e6c981f4e
commit dfe4810199

View File

@ -307,6 +307,15 @@ button {
border-radius: 0;
}
// Explicitly remove focus outline in Chromium when it shouldn't be
// visible (e.g. as result of mouse click or touch tap). It already
// should be doing this automatically, but seems to currently be
// confused and applies its very visible two-tone outline anyway.
button:focus:not(:focus-visible) {
outline: 0;
}
input,
button,
select,