There can't be spaces here. Also the initial state wasn't being set correctly.
If the goal of making the <li> element clickable was to provide large area for a mouse click, this should be done via CSS. The "clickable" element needs to be focusable via keyboard. This element would be the <button>
Invalid ARIA attribute value: aria-pressed=" true "
There can't be spaces here. Also the initial state wasn't being set correctly.
If the goal of making the <li> element clickable was to provide large area for a mouse click, this should be done via CSS. The "clickable" element needs to be focusable via keyboard. This element would be the <button>