From 7a5b463af938034ae0a20ed97adb1fe97c812e2d Mon Sep 17 00:00:00 2001 From: Guillaume Cusnieux Date: Wed, 7 Feb 2024 16:13:25 +0100 Subject: [PATCH] fix(gv-tree): improve a11y --- src/molecules/gv-tree/gv-tree.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/molecules/gv-tree/gv-tree.js b/src/molecules/gv-tree/gv-tree.js index 0029e74f..0b7b4627 100644 --- a/src/molecules/gv-tree/gv-tree.js +++ b/src/molecules/gv-tree/gv-tree.js @@ -143,8 +143,22 @@ export class GvTree extends LitElement { box-sizing: border-box; } + ul label:hover, + .selected > label { + font-style: italic; + text-decoration: underline; + } + + .folder > label:hover, .folder > label { font-weight: bold; + font-style: normal; + text-decoration: none; + } + + ul label:hover, + .folder > label:hover { + opacity: 0.8; } .tree-arrow {