Skip to content
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

about the aria-pressed status of control buttons #2771

Open
qt06 opened this issue Jan 30, 2024 · 0 comments
Open

about the aria-pressed status of control buttons #2771

qt06 opened this issue Jan 30, 2024 · 0 comments

Comments

@qt06
Copy link

qt06 commented Jan 30, 2024

The aria-pressed property on some control buttons maybe cause confusion.
For example, click the play button,, the label of the button changed to "pause", and the aria-pressed="true".
Here, the screen reader will read out " pause button pressed".
The "pressed" property means the button's status is pressed, and means the player is paused. But, the player is playing now.
So, if you want to keep the pressed state,the content of the label cannot be changed.
Alternatively, I think the attributes that have been pressed are unnecessary and can be deleted directly.
Because the text of the button has changed with the state, this is enough to demonstrate the functionality of the button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant