Commit 16479b9
committed
Fix Caps-lock-is-on color in light theme #4320
When a Polkit dialog is open to ask for the password, if the
user activates the Caps Lock, a message appears under the text
entry notifying that it is active, to warn the user.
In dark theme, this message is painted in yellow, which is fine
because it gives a good contrast against the background; but in
ligth theme, a slightly darker yellow is used, which has poor
contrast. This goes against the accessibility (A11Y)
requirements of having, at least, a 4.5/1 contrast ratio in text.
This only happens in Yaru, because in upstream Gnome theme, the
dialog is always dark, no matter what style (dark or light) is
selected by the user.
This patch fixes this by setting the WARNING text color to black
in light themes.1 parent ac30130 commit 16479b9
File tree
2 files changed
+3
-3
lines changed- gnome-shell
- src/gnome-shell-sass
- upstream/theme/gnome-shell-sass
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments