-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
a11y: rewrite td-headers-attr titles #9587
Conversation
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.
🙇the i18n 👑!!!
:)
Co-Authored-By: Patrick Hulce <[email protected]>
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.
LGTM
thanks for decoding this one @exterkamp :)
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.
TIL [headers]
attribute.
TIL axe's docs on this audit are mostly about scope
which the audit doesnt care about. dequelabs/axe-core#1782
our docs on it are also a bit confusing because it uses header
but the example is seemingly incorrect not because it Week
isn't an [id]
in the table but because "one column has multiple table headers".
plus i bet this attribute doesn't get much use anyhow.
bleh.
@@ -276,10 +276,10 @@ | |||
"message": "Screen readers have features to make navigating tables easier. Ensuring `<td>` cells using the `[headers]` attribute only refer to other cells in the same table may improve the experience for screen reader users. [Learn more](https://web.dev/td-headers-attr/)." | |||
}, | |||
"lighthouse-core/audits/accessibility/td-headers-attr.js | failureTitle": { | |||
"message": "Cells in a `<table>` element that use the `[headers]` attribute do not refer to headers of the same table." | |||
"message": "Cells in a `<table>` element that use the `[headers]` attribute refer to element `id`s not found within the same table." |
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.
@exterkamp is the plurliazation of a placeholder not a problem then? I noticed you did it in #9590 too
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.
Shouldn't be, it's only a problem when we have a variable amount of things. If we passed in a variable like idCount
and needed a variable amount of id
s then it would be a problem.
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.
Shouldn't be, it's only a problem when we have a variable amount of things. If we passed in a variable like
idCount
and needed a variable amount ofid
s then it would be a problem.
but is there a single character (or equivalent characters) in other languages that means "make the attached word plural"?
Seems better to reword, even if it gets into plural awkwardness (and even better if we can reword to avoid the awkwardness) "refer to an element
id not found within the same table"
or whatever
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.
Gotcha. Done!
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.
ya brendan much better worded my concern :) 👍
Summary
Translators were confused by these titles, and looking into it, they don't seem to make sense. This should be more accurate to the audit itself.
Deque Link