-
Notifications
You must be signed in to change notification settings - Fork 161
a11y - Fix read all the expiry date errors #3216
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
base: main
Are you sure you want to change the base?
Conversation
|
|
size-limit report 📦
|
What exactly do you mean? Where is this "removal" happening? |
@sponglord the removal is happening in |
But that was always there, wasn't it? Your description makes it sound like this is new functionality. For context: the reason I'm talking about this at all is because your description says
|
id: 'ariaLiveSRPanel', | ||
ariaAttributes: { | ||
'aria-relevant': 'all', | ||
'aria-relevant': 'additions', |
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.
Can you confirm that all the errors still get read out when the (Card) PM is completely empty and the "Pay" button is pressed?
(I thought that was why I'd used "all" instead of "additions" originally - but it was a long time ago...!)
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.
I have just tested the Pay button scenario. It does not change with aria-relevant
.
However It's not always reading from aria-live. I will double check exactly if is a new behaviour.
I guess I didn't make it clear. It was always there but it was only an inner div of the div where aria-live was. Now I moved the aria-live attribute to be after the So when message is empty the aria-live gets gets removed. |
Does that not break the a11y requirement, for such an "error" panel, that there is a permanent element in the DOM with an |
It was never the case that it needed to be permanently in the DOM. Was it? |
It definitely has to be in the DOM at startup, so the screenreader can find and identify it as an area to watch.
(from a meeting recording we had access to) Whether after that it has to be permanently present I don't know - but I'm presuming so |
Summary
The objective of this PR is to make the SF errors for Expiry date to be read. This wasn't happen as they are not triggered onBlur but onChange.
There's 3 main changes:
onBlur
events.aria-relevant
has been changed fromall
toadditions
Tested scenarios
Test regressions:
Fixed issue: