docs: replace :has selector with data-path attribute for nav-folder styling

This commit is contained in:
Mara 2025-09-17 19:33:16 +02:00
parent 70fbbc3306
commit 23d693e9ee

View file

@ -28,7 +28,7 @@ To remove the border when collapsed, add just this in a separate CSS snippet:
![tree with colored folders](./assets/indentation.png)
```css
.tree-item.nav-folder:has([data-path="${folderName}"]) {
.tree-item.nav-folder[data-path="${folderName}"] {
--nav-indentation-guide-color: var(${color});
}
```