From 711a14fd9ccea0a5b3c68dfa20fc34e558823f40 Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Sat, 5 Apr 2025 22:23:54 +0200 Subject: Add :focus style to .dropdown-menu .item (#7491) So you can see keyboard focus. In reply to . --- p/themes/Alternative-Dark/adark.css | 3 +++ p/themes/Alternative-Dark/adark.rtl.css | 3 +++ p/themes/Dark/dark.css | 3 +++ p/themes/Dark/dark.rtl.css | 3 +++ p/themes/Flat/flat.css | 3 +++ p/themes/Flat/flat.rtl.css | 3 +++ p/themes/Nord/nord.css | 3 +++ p/themes/Nord/nord.rtl.css | 3 +++ p/themes/Origine/origine.css | 3 +++ p/themes/Origine/origine.rtl.css | 3 +++ p/themes/Pafat/pafat.css | 3 +++ p/themes/Pafat/pafat.rtl.css | 3 +++ 12 files changed, 36 insertions(+) diff --git a/p/themes/Alternative-Dark/adark.css b/p/themes/Alternative-Dark/adark.css index 48c84efe6..5f3b468dd 100644 --- a/p/themes/Alternative-Dark/adark.css +++ b/p/themes/Alternative-Dark/adark.css @@ -369,8 +369,11 @@ th { margin-bottom: 0.5rem; } +.dropdown-menu .item > a:focus, .dropdown-menu .item > a:hover, +.dropdown-menu .item > button:focus:not([disabled]), .dropdown-menu .item > button:hover:not([disabled]), +.dropdown-menu .item > label:focus:not(.noHover), .dropdown-menu .item > label:hover:not(.noHover) { background: var(--background-color-hover); color: var(--font-color-light); diff --git a/p/themes/Alternative-Dark/adark.rtl.css b/p/themes/Alternative-Dark/adark.rtl.css index c365ca220..7be9f71a5 100644 --- a/p/themes/Alternative-Dark/adark.rtl.css +++ b/p/themes/Alternative-Dark/adark.rtl.css @@ -369,8 +369,11 @@ th { margin-bottom: 0.5rem; } +.dropdown-menu .item > a:focus, .dropdown-menu .item > a:hover, +.dropdown-menu .item > button:focus:not([disabled]), .dropdown-menu .item > button:hover:not([disabled]), +.dropdown-menu .item > label:focus:not(.noHover), .dropdown-menu .item > label:hover:not(.noHover) { background: var(--background-color-hover); color: var(--font-color-light); diff --git a/p/themes/Dark/dark.css b/p/themes/Dark/dark.css index 3f203d908..9ba1bb5a1 100644 --- a/p/themes/Dark/dark.css +++ b/p/themes/Dark/dark.css @@ -288,8 +288,11 @@ button.as-link[disabled] { color: var(--dark-font-color8); } +.dropdown-menu .item > a:focus, .dropdown-menu .item > a:hover, +.dropdown-menu .item > button:focus:not([disabled]), .dropdown-menu .item > button:hover:not([disabled]), +.dropdown-menu .item > label:focus:not(.noHover), .dropdown-menu .item > label:hover:not(.noHover) { background-color: var(--dark-background-color-blue); color: var(--dark-font-color8); diff --git a/p/themes/Dark/dark.rtl.css b/p/themes/Dark/dark.rtl.css index f884386b9..7bba4c43e 100644 --- a/p/themes/Dark/dark.rtl.css +++ b/p/themes/Dark/dark.rtl.css @@ -288,8 +288,11 @@ button.as-link[disabled] { color: var(--dark-font-color8); } +.dropdown-menu .item > a:focus, .dropdown-menu .item > a:hover, +.dropdown-menu .item > button:focus:not([disabled]), .dropdown-menu .item > button:hover:not([disabled]), +.dropdown-menu .item > label:focus:not(.noHover), .dropdown-menu .item > label:hover:not(.noHover) { background-color: var(--dark-background-color-blue); color: var(--dark-font-color8); diff --git a/p/themes/Flat/flat.css b/p/themes/Flat/flat.css index da055dff8..ae6345e8b 100644 --- a/p/themes/Flat/flat.css +++ b/p/themes/Flat/flat.css @@ -333,8 +333,11 @@ th { margin-bottom: 0.5rem; } +.dropdown-menu .item > a:focus, .dropdown-menu .item > a:hover, +.dropdown-menu .item > button:focus:not([disabled]), .dropdown-menu .item > button:hover:not([disabled]), +.dropdown-menu .item > label:focus:not(.noHover), .dropdown-menu .item > label:hover:not(.noHover) { background: #2980b9; color: #fff; diff --git a/p/themes/Flat/flat.rtl.css b/p/themes/Flat/flat.rtl.css index b911f8f56..c3f373137 100644 --- a/p/themes/Flat/flat.rtl.css +++ b/p/themes/Flat/flat.rtl.css @@ -333,8 +333,11 @@ th { margin-bottom: 0.5rem; } +.dropdown-menu .item > a:focus, .dropdown-menu .item > a:hover, +.dropdown-menu .item > button:focus:not([disabled]), .dropdown-menu .item > button:hover:not([disabled]), +.dropdown-menu .item > label:focus:not(.noHover), .dropdown-menu .item > label:hover:not(.noHover) { background: #2980b9; color: #fff; diff --git a/p/themes/Nord/nord.css b/p/themes/Nord/nord.css index 9c2701e2b..0d4ae5ed0 100644 --- a/p/themes/Nord/nord.css +++ b/p/themes/Nord/nord.css @@ -396,8 +396,11 @@ svg:hover { margin-bottom: 0.5rem; } +.dropdown-menu .item > a:focus, .dropdown-menu .item > a:hover, +.dropdown-menu .item > button:focus:not([disabled]), .dropdown-menu .item > button:hover:not([disabled]), +.dropdown-menu .item > label:focus:not(.noHover), .dropdown-menu .item > label:hover:not(.noHover) { background-color: var(--light-bg); color: var(--text-default); diff --git a/p/themes/Nord/nord.rtl.css b/p/themes/Nord/nord.rtl.css index 138ad12bf..768ea0922 100644 --- a/p/themes/Nord/nord.rtl.css +++ b/p/themes/Nord/nord.rtl.css @@ -396,8 +396,11 @@ svg:hover { margin-bottom: 0.5rem; } +.dropdown-menu .item > a:focus, .dropdown-menu .item > a:hover, +.dropdown-menu .item > button:focus:not([disabled]), .dropdown-menu .item > button:hover:not([disabled]), +.dropdown-menu .item > label:focus:not(.noHover), .dropdown-menu .item > label:hover:not(.noHover) { background-color: var(--light-bg); color: var(--text-default); diff --git a/p/themes/Origine/origine.css b/p/themes/Origine/origine.css index 55b92a2db..6460d744a 100644 --- a/p/themes/Origine/origine.css +++ b/p/themes/Origine/origine.css @@ -456,8 +456,11 @@ a:hover .icon { margin-bottom: 0.5rem; } +.dropdown-menu .item > a:focus, .dropdown-menu .item > a:hover, +.dropdown-menu .item > button:focus:not([disabled]), .dropdown-menu .item > button:hover:not([disabled]), +.dropdown-menu .item > label:focus:not(.noHover), .dropdown-menu .item > label:hover:not(.noHover) { background-color: var(--contrast-background-color-active); color: var(--font-color-light); diff --git a/p/themes/Origine/origine.rtl.css b/p/themes/Origine/origine.rtl.css index 927b643b0..1b128e367 100644 --- a/p/themes/Origine/origine.rtl.css +++ b/p/themes/Origine/origine.rtl.css @@ -456,8 +456,11 @@ a:hover .icon { margin-bottom: 0.5rem; } +.dropdown-menu .item > a:focus, .dropdown-menu .item > a:hover, +.dropdown-menu .item > button:focus:not([disabled]), .dropdown-menu .item > button:hover:not([disabled]), +.dropdown-menu .item > label:focus:not(.noHover), .dropdown-menu .item > label:hover:not(.noHover) { background-color: var(--contrast-background-color-active); color: var(--font-color-light); diff --git a/p/themes/Pafat/pafat.css b/p/themes/Pafat/pafat.css index be8d366c9..e4f940edc 100644 --- a/p/themes/Pafat/pafat.css +++ b/p/themes/Pafat/pafat.css @@ -379,8 +379,11 @@ th { margin-bottom: 0.5rem; } +.dropdown-menu .item > a:focus, .dropdown-menu .item > a:hover, +.dropdown-menu .item > button:focus:not([disabled]), .dropdown-menu .item > button:hover:not([disabled]), +.dropdown-menu .item > label:focus:not(.noHover), .dropdown-menu .item > label:hover:not(.noHover) { background-color: var(--background-color-grey-hover); color: var(--font-color-grey); diff --git a/p/themes/Pafat/pafat.rtl.css b/p/themes/Pafat/pafat.rtl.css index 95d98e0db..42ba0eddf 100644 --- a/p/themes/Pafat/pafat.rtl.css +++ b/p/themes/Pafat/pafat.rtl.css @@ -379,8 +379,11 @@ th { margin-bottom: 0.5rem; } +.dropdown-menu .item > a:focus, .dropdown-menu .item > a:hover, +.dropdown-menu .item > button:focus:not([disabled]), .dropdown-menu .item > button:hover:not([disabled]), +.dropdown-menu .item > label:focus:not(.noHover), .dropdown-menu .item > label:hover:not(.noHover) { background-color: var(--background-color-grey-hover); color: var(--font-color-grey); -- cgit v1.2.3