Skip to content

Commit

Permalink
update docs (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
robphoenix authored Nov 25, 2024
1 parent 07c2f30 commit fd6230f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/web-ui/src/components/Button/Button.docs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ import { DocsHeader } from '../../storybook-components';

Uses a native `<button>` element under the hood, with support for the <kbd>Space</kbd> and <kbd>Enter</kbd> keys.

Disabled buttons use `aria-disabled` so that they are still focusable when
using the keyboard. This means that screen readers are still able to find the
button, however the `onClick` handler will be disabled.
Disabled buttons use `aria-disabled`, rather than `disabled`, so that they are
still focusable when using the keyboard. This means that screen readers are
still able to find the button, with the insight that it is disabled and that
there is perhaps an action which needs to be taken, rather than not knowing
there is a button there at all. The `onClick` handler will still be disabled.

### Known issues

Expand Down

0 comments on commit fd6230f

Please sign in to comment.