-
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
Navigation: Try adding Links block #24644
Comments
@talldan: I think this is where we landed. Does it sound right to you? @shaunandrews: Any thoughts on minimising the user impact here? |
Only that I wouldn't expect a user to have to understand any of these details; I'm not sure any of this should be exposed in the UI. |
I think that we're forced to implement a container Links block because:
I agree that a container Links block is not an ideal user experience 😞 |
I will move this to |
Now that #30551 has been merged, we can close this. |
Currently, if you add a Search block to a Navigation block, this is the resultant markup displayed on the frontend:
Note that
form
appears within theul
which is invalid HTML.The accessibility advice is that only links should appear within a navigation's
ul
. Other blocks should render within thenav
.To do implement this, let's explore adding a intermediary Links block which:
ul
around its inner blocks.When adding a Navigation, a Links block should already be added so as to minimise the number of clicks needed for a user to add a Link to a Navigation.
There is some previous exploration of this in the
try/split-navigation-links-out-of-navigation
branch.See previous discussion in #24364 and #23915 for more context.
The text was updated successfully, but these errors were encountered: