doc: improve accessibility of expandable lists · nodejs/node@33ee464
@@ -182,34 +182,29 @@ li.picker-header .picker-arrow {
182182height: .6rem;
183183border-top: .3rem solid transparent;
184184border-bottom: .3rem solid transparent;
185-border-left: .6rem solid var(--color-links);
185+border-left: .6rem solid currentColor;
186186border-right: none;
187187margin: 0 .2rem .05rem 0;
188188}
189189190-li.picker-header a:focus .picker-arrow,
191-li.picker-header a:active .picker-arrow,
192-li.picker-header a:hover .picker-arrow {
193-border-left: .6rem solid var(--white);
194-}
195-196-li.picker-header.expanded a:focus .picker-arrow,
197-li.picker-header.expanded a:active .picker-arrow,
198-li.picker-header.expanded a:hover .picker-arrow,
190+li.picker-header.expanded .picker-arrow,
191+:root:not(.has-js) li.picker-header:focus-within .picker-arrow,
199192:root:not(.has-js) li.picker-header:hover .picker-arrow {
200-border-top: .6rem solid var(--white);
193+border-top: .6rem solid currentColor;
201194border-bottom: none;
202195border-left: .35rem solid transparent;
203196border-right: .35rem solid transparent;
204197margin-bottom: 0;
205198}
206199207200li.picker-header.expanded > a,
201+:root:not(.has-js) li.picker-header:focus-within > a,
208202:root:not(.has-js) li.picker-header:hover > a {
209203border-radius: 2px 2px 0 0;
210204}
211205212206li.picker-header.expanded > .picker,
207+:root:not(.has-js) li.picker-header:focus-within > .picker,
213208:root:not(.has-js) li.picker-header:hover > .picker {
214209display: block;
215210z-index: 1;