I have the code on my website with a header: <h3 class="label" type="button">
It is an accordion so I’d like to make it more accessible by changing it to:
<h3 class="label"><button aria-expanded="true">
. But it adds some styling on top for the button. I don’t want this, I would like to keep the styling that is now. Is there any efficient way to do this, other than just styling the special class of the button?
2
Answers
It needs
all: inherit
style, can be added inline.You can apply a global inherit to the button element:
and html: