diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-04-06 12:59:56 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-04-06 13:19:29 +0000 |
commit | ea527812a0e5deb8700b7c05b4bc13c09ff6efc2 (patch) | |
tree | f59123b55d367fe241c9569ff7588b5fcf96f36a | |
parent | 01851e04fcd895b7cfed25298bd44c47c0090dab (diff) | |
download | gtk+-ea527812a0e5deb8700b7c05b4bc13c09ff6efc2.tar.gz |
HighContrast: fix focus
We don't want to render focus rectangles on everything. With
the way focus is propagated nowadays, the theme has to selectively
render focus on certain widgets.
At the same time, we always want to render focus for this
theme, so use the focus pseudoclass, not focus(visible).
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1815
-rw-r--r-- | gtk/theme/HighContrast/_common.scss | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk/theme/HighContrast/_common.scss b/gtk/theme/HighContrast/_common.scss index fc367aa5c5..e98c7324c1 100644 --- a/gtk/theme/HighContrast/_common.scss +++ b/gtk/theme/HighContrast/_common.scss @@ -16,7 +16,14 @@ $ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94); outline-style: none; } -*:focus(visible) { +button:focus, +checkbutton:focus, +radiobutton:focus, +switch:focus, +scale:focus, +label:focus, +row:focus, +flowboxchild:focus { // We use the outline properties to signal the focus properties // to the adwaita engine: using real CSS properties is faster, // and we don't use any outlines for now. |