aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2026-03-11 08:50:18 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2026-03-11 09:47:50 +0100
commit164946d33b62d6091db2e2afa83a1fd2ee7a0c56 (patch)
tree9a59e11d301f81673cce86d1234d0098f4526026
parentcffd3152a582de30b91130864b723debb2b39ed1 (diff)
also highlight table row when using keyboard navigation, fixes #6345
Closes #6345 Merge request studip/studip!4807
-rw-r--r--resources/assets/stylesheets/less/tables.less4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/assets/stylesheets/less/tables.less b/resources/assets/stylesheets/less/tables.less
index ba5004e..913b52f 100644
--- a/resources/assets/stylesheets/less/tables.less
+++ b/resources/assets/stylesheets/less/tables.less
@@ -479,10 +479,10 @@ table.default {
border-bottom: 1px solid var(--brand-color-darker);
}
// Hover effect
- &:not(.nohover) > tbody:not(.nohover) > tr:not(.nohover):hover > td:not(.nohover) {
+ &:not(.nohover) > tbody:not(.nohover) > tr:not(.nohover):is(:hover, :focus-within) > td:not(.nohover) {
background-color: fadeout(@light-gray-color, 80%);
}
- &:not(.nohover) > tbody:not(.nohover) > tr.selected:not(.nohover):hover > td:not(.nohover) {
+ &:not(.nohover) > tbody:not(.nohover) > tr.selected:not(.nohover):is(:hover, :focus-within) > td:not(.nohover) {
background-color: var(--yellow-40);
}
> tfoot {