You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Navigation page: the "Currently editing" select element should not trigger a page re-render on change #25312
In the new Navigation page, the "Currently editing" select element triggers a page re-render when the change event fires. This is a known accessibility barrier as changes of context should always happen on explicit user activation. Worth reminding this behavior is dangerous especially on Windows, where the select elements options can be changed even keeping the select closed. For more details, please refer to this Trac ticket:
I'm thinking it might be better to consolidate the interactions; All the other buttons here (Add new, Manage locations) are DropdownMenu's and maybe this one should be too. It would look something like this:
Yep a DropdownMenu is an option and I do see it brings in consistency. However, it doesn't show which is the currently selected menu being edited. This missing info could be communicated separately though.
Given this page needs also some more headings to better identify the main sections (worth reminding headings are also a navigational tool for screen reader users) I'd like to propose to add a <h2> heading before the menu toolbar and the heading text would be the name of the menu being edited.
Aside: the tree view on the right has a <h3> heading with text "List view" that should be bumped up to a <h2> as the headings hierarchy is skipping one level.
I see @talldan made a PR for a select + button in the meantime. Going to have a look but I like the idea of a DropdownMenu [Edit] I did read only the first part of the PR 😆 I see it was changed to use a DropdownMenu 👍
Aside: the tree view on the right has a <h3> heading with text "List view" that should be bumped up to a <h2> as the headings hierarchy is skipping one level.
If we do add a <h2> heading for the current menu indicator, wouldn't it make sense for the list view heading to remain an <h3>?
Hm... not sure. Do you see the "list view" as a sub-section of the menu-edit section? Or are they two sections of the same importance? Generally, fewer heading levels are better because are simpler and faster to navigate through. I'd go for a H3 only for a section that is clearly, logically a sub-section.
This has nothing to do with the visual side: headings don't necessarily need to look "big", as long as the visual hierarchy is preserved besides the semantic hierarchy.
Activity
shaunandrews commentedon Sep 17, 2020
I'm thinking it might be better to consolidate the interactions; All the other buttons here (Add new, Manage locations) are
DropdownMenu's and maybe this one should be too. It would look something like this:afercia commentedon Sep 18, 2020
Yep a
DropdownMenuis an option and I do see it brings in consistency. However, it doesn't show which is the currently selected menu being edited. This missing info could be communicated separately though.Given this page needs also some more headings to better identify the main sections (worth reminding headings are also a navigational tool for screen reader users) I'd like to propose to add a
<h2>heading before the menu toolbar and the heading text would be the name of the menu being edited.Aside: the tree view on the right has a
<h3>heading with text "List view" that should be bumped up to a<h2>as the headings hierarchy is skipping one level.I see @talldan made a PR for a select + button in the meantime. Going to have a look but I like the idea of a[Edit] I did read only the first part of the PR 😆 I see it was changed to use aDropdownMenuDropdownMenu👍shaunandrews commentedon Sep 18, 2020
If we do add a
<h2>heading for the current menu indicator, wouldn't it make sense for the list view heading to remain an<h3>?afercia commentedon Sep 21, 2020
Hm... not sure. Do you see the "list view" as a sub-section of the menu-edit section? Or are they two sections of the same importance? Generally, fewer heading levels are better because are simpler and faster to navigate through. I'd go for a H3 only for a section that is clearly, logically a sub-section.
This has nothing to do with the visual side: headings don't necessarily need to look "big", as long as the visual hierarchy is preserved besides the semantic hierarchy.