Basic toggle using aria-pressed. This time, taking advantage of CSS attribute selectors for styling: button[aria-pressed="true"] { ... }