• Robert Knight's avatar
    Do not set "aria-pressed" attribute for non-toggle buttons · fd927d6b
    Robert Knight authored
    Setting the `aria-pressed` attribute on a button indicates to assistive
    technology that it is a toggle button. Because the `Button` component
    always set this attribute and the `isActive` prop had a default value of
    false, this meant that every `Button` in the UI was identified as a
    toggle button by screen readers.
    
    Fix the issue by renaming `isActive` to `isPressed` and aligning it with
    the behavior of `aria-pressed`:
    
     - If `true`, the button is a pressed toggle button
     - If `false`, the button is a non-pressed toggle button
     - If undefined, the button is a regular button and `aria-pressed` is
       not set
    fd927d6b
Name
Last commit
Last update
..
components Loading commit data...
directive Loading commit data...
filter Loading commit data...
services Loading commit data...
store Loading commit data...
templates Loading commit data...
test Loading commit data...
util Loading commit data...
build-thread.js Loading commit data...
cross-origin-rpc.js Loading commit data...
events.js Loading commit data...
ga.js Loading commit data...
get-api-url.js Loading commit data...
host-config.js Loading commit data...
index.js Loading commit data...
live-reload-client.js Loading commit data...
markdown-commands.js Loading commit data...
media-embedder.js Loading commit data...
render-markdown.js Loading commit data...
search-client.js Loading commit data...
service-config.js Loading commit data...
ui-constants.js Loading commit data...
virtual-thread-list.js Loading commit data...
websocket.js Loading commit data...