V
V
Vladimir2017-12-06 13:15:52
HTML
Vladimir, 2017-12-06 13:15:52

Aria-expanded="true" how to use in LESS?

Good afternoon to all makers!
I'm laying out an accordion using LESS and I want to change the attribute property (Aria-expanded from "false" to "true") in the button's styles to trigger a certain rule.
In vanilla it would look like this:

li{
&.tree-parent{
  &:[aria-expanded="true"] {
     background: url('some-image.gif');
     }
  }
}

but less does not compile this way.
Hope for your knowledge!
Thank you for your attention.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolay, 2017-12-06
@nickolyashka

li.tree-parent[aria-expanded=true]
Try this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question