-
Notifications
You must be signed in to change notification settings - Fork 95
fix(a11y): Revert "fix(NcAppNav): changed h2 to span" #5283
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
Conversation
This reverts commit ccdd40f. Signed-off-by: Christopher Ng <[email protected]>
|
/backport to next |
|
LGTM! |
ShGKme
left a comment
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 think this brings back an old issue and doesn't fix the new one.
List item should not be a section header. It should be assigned to the list via aria-labelledby.
There is a list of items that should not be a single list. E.g. "Active accounts" and "New group" are different things. We cannot label both by "Groups".
In this place, it should be separated into 2 lists and "Groups" should be the caption only of the second list (not level 2 heading of the page).
Implementation wise, I'd say, a simple solution could be to manually connect the list with NcAppNavigationCaption via aria-labelledby and a more complex and magic solution - via provide/inject label a list if it has NcAppNavigationCaption.
So just add
Would this not require something like a |
Will do a simple nested |
But we already have a component for a list, wouldn't it work? |
|
@Pytal to clarify, the header must be out of the list, it should not be a part of the list like <ul>
...first list of items...
</ul>
<span id="ID">Groups</span>
<ul aria-labelledby="ID">
...second list of items...
</ul>It happens that <ul>
...first list of items...
</ul>
<h2>Groups</h2>
<ul>
...second list of items...
</ul>In any case, |
|
@ShGKme was first 😆 |
Is this really needed? Because then we need to fix the whole Meaning would it not be possible to have: <ul>
<li><span id="ID">...</span></li> <!-- This is the caption component -->
<li>
<ul aria-labelledby="ID">
<li>...</li>
</ul>
</li>
</ul> |
You mean |
Yes... We have two lists with a header in the middle (semantically and visually) that is implemented as a single list.
Sorry, I mixed up with
It is only put inside Probably, here adding new
I'm not sure I understand what you mean here... |
Right, had missed the default slot at first too. So I would say adding a new |
|
Superseded by #5302 |

Summary
🏁 Checklist
nextrequested with a Vue 3 upgrade