-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
fix(a11y): Files table roles #39385
fix(a11y): Files table roles #39385
Conversation
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: Christopher Ng <chrng8@gmail.com>
/backport to stable27 |
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.
To which ticket this PR belongs to?
Files2Vue a11y so would call this a followup to #36534 |
@@ -23,7 +23,7 @@ | |||
<NcAppContent v-show="!currentView?.legacy" | |||
:class="{'app-content--hidden': currentView?.legacy}" | |||
data-cy-files-content> | |||
<div class="files-list__header"> | |||
<div class="files-list__crumbs"> |
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.
Please no, more things than breadcrumbs are/will-be in here
@@ -143,8 +143,10 @@ export default Vue.extend({ | |||
mounted() { | |||
// Make the root recycle scroller a table for proper semantics | |||
const slots = this.$el.querySelectorAll('.vue-recycle-scroller__slot') | |||
slots[0].setAttribute('role', 'thead') |
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.
Why is the thead not needed anymore suddenly?
The first table tr row is exactly a header, no?
https://developer.mozilla.org/en-US/docs/Learn/HTML/Tables/Advanced#the_scope_attribute
Superseded by #39808 |
Summary
Checklist