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/Pafat/pafat.css | 3 +++ p/themes/Pafat/pafat.rtl.css | 3 +++ 2 files changed, 6 insertions(+) (limited to 'p/themes/Pafat') 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