Commit af639aec authored by Dave Pisek's avatar Dave Pisek

Fix focus-visibility for vulnerability actions

When navigating through the security dashboard using the keyboard,
the action buttons for a given vulnerability stay hidden,
even when they have focus.

This commit changes the responsible CSS-selector from using `:focus`
to `:focus-within` so the row of buttons is set to be visible whenever
an element inside has focus.

More info:
https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-within
parent b5503047
......@@ -143,7 +143,7 @@ export default {
}
.vulnerabilities-row:hover .action-buttons,
.vulnerabilities-row:focus .action-buttons {
.vulnerabilities-row:focus-within .action-buttons {
opacity: 1;
}
}
......
---
title: Fix focus-visibility of vulnerability-actions within security
dashboard
merge_request: 15115
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment