-
-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessibility: Button pressed state and lists #940
base: main
Are you sure you want to change the base?
Conversation
dc4fd25
to
a8c5ad5
Compare
@wojtekmaj Is there anything else you need from me to make this happen? |
@@ -120,6 +120,7 @@ export default function Tile(props: TileProps): React.ReactElement { | |||
onMouseOver={onMouseOver ? () => onMouseOver(date) : undefined} | |||
style={style} | |||
type="button" | |||
aria-pressed={!!classes?.find((classString) => classString.indexOf('--active') != -1 || classString.indexOf('--hasActive') != -1)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the easiest way I could figure out how to check for the selected state.
hi @wojtekmaj I'm interested in the status of this PR as well. The issue that this PR is fixing blocks my ability to use the library in a project. Is this something that's intended to be merged in the near future? |
I, too, am interested in this fix. |
@wojtekmaj I am not quite sure how these changes are affecting the failing tests |
Fixes #613 by adding a pressed state to the button.
Also adds lists for displaying, so a screen reader may know which item number you are currently at.
Preferably it would use tables and support arrow key navigation, as mentioned in #887, but that requires quite a lot of refactoring which will result in breaking changes.