Bug: gridcell ARIA role incorrectly added to Day button element #1674
Replies: 2 comments 2 replies
-
@rihardsgravis the role is correct, in v8.5 we changed it to be a I'm sorry this change broke your tests: it should be easy to update them - targeting the For example, to get the day button you'd need to update: - screen.getByRole('button', {
+ screen.getByRole('gridcell', {
- name: format(day, 'do MMMM (EEEE)')
+ name: day.getDate().toString()
}); I'm thinking if there's a way to apply this change without having a mayor release... |
Beta Was this translation helpful? Give feedback.
2 replies
-
Main discussion here: #1716 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bug description
The ARIA
gridcell
role is added to the Day button, but that is an incorrect role for the button since it does not represent a cell in a grid – it is in fact a child of a cell. Accessibility tests using the component are failing.Expected behaviour
The role for the button could be
button
or omitted at all since it's a HTM button component and the role for it is clear.Beta Was this translation helpful? Give feedback.
All reactions