mirror of
https://github.com/pi-hole/web.git
synced 2026-08-23 14:51:12 +01:00
`unicorn/prefer-scoped-selector` (new in xo 3) requires `:scope` in combined element queries, so the selector was changed to `:scope > .btn-box-tool > i`. The child combinator `>` after `:scope` is wrong though: the box markup nests the tool button as `.box > .box-header > .box-tools > button.btn-box-tool`, so a direct-child query matched nothing and the collapse/expand chevron never toggled on `#forgot-pw-box` (login) and `#custom-servers-box` (settings/dns). Use the descendant combinator `:scope .btn-box-tool > i`, which the rule's own suggestion inserts and which correctly resolves the icon in the header. Signed-off-by: DL6ER <dl6er@dl6er.de>