Problem/Motivation
This is follow up issue from https://www.drupal.org/project/drupal/issues/3393400#comment-15627607
As part of that issue, the aria-labelled-by attributes were removed from the HTML markup. (Commit)
Proposed resolution
We decided in this issue to explicitly not add aria labels for specific navigation blocks because this resulted in too many landmarks on the page - the one each for side and top bar are sufficient and a good balance.
Otherwise:
I imagine problems when both the hidden menu title is added back per #105 and the blocks have been customized to display the block title per #107.
There will be redundant adjacent text (with the menu titles hidden visually but perceivable to screen reader users).
If the hidden menu titles (per #105) are h* elements, both these title and the block titles will display as headings to screen reader users.
AFAIK headings would cause navigation problems. But even if the menu titles were standard text instead of headings, it seems this would be confusing verbosity. A screen reader expert should double-check me on this.
Examples:
Here's a screenshot of the VoiceOver rotor with the block titles displayed and the hidden menu titles added back as headings on line 2 of navigation-menu.html.twig (per #105):

Here's a screenshot with the block titles visually-hidden in block--navigation.html.twig and without the hidden menu titles added back in navigation-menu.html.twig. The only headings in the menu are the block titles.:

Remaining tasks
TBD
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Release notes snippet
TBD
Issue fork drupal-3452724
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3452724-nav-label
changes, plain diff MR !11122
- 3452724-add-back-the
changes, plain diff MR !8509
Comments
Comment #2
finnsky commentedComment #3
m4oliveiComment #4
m4oliveiComment #5
plopescComment #6
plopescComment #7
nod_marking as bug because it's an a11y regression
Comment #8
nod_Comment #11
gauravvvv commentedComment #12
gauravvvv commentedThe
<li id="navigation-link-navigationcreate">tag id is used on the buttons asaria-controls="navigation-link-navigationcreate". This is important for screenreaders to understand the relationship between the button and the<li>it controls.I am in favor of not removing the ID attr from
<li>.Comment #13
smustgrave commentedIt's small change but issue is marked major and seems to be a regression (or revert). So think some test coverage would be good, just a simple assertion
Comment #14
finnsky commentedWe just removed that from Twig in linked ticket. In current ticket we need to decide if that title needed or not.
And if yes we need to add this with JS because of caching reasons.
Also that titles were added initially from first days of development. And then we created others on block level. So probably they are artefacts and can be ignored.
Comment #16
finnsky commentedComment #17
smustgrave commentedStill would vote to added test coverage though
Comment #18
finnsky commentedComment #19
finnsky commentedWe not sure yet.
Comment #20
quietone commentedComment #21
ckrinaComment #22
ckrinaRemoving the "prove the need" because it's proven already that this is necessary to fix #3438976: Implement a caching strategy for the menu links. Discussing this with @plopesc.
Comment #23
finnsky commentedI think it still requires some prove label in title ;)
I see now real chaos in titles
https://gyazo.com/0f847b120acbbc46226ddfc0cf47815e
we have h2 and h4. which is real title here? and which one should be aria label?
Comment #24
ckrinaAdding the "Drupal CMS release target" to see if we could hopefully get to it.
Comment #25
catchThe MR adds these back in the twig template, but the issue summary and linked issue mention it needs to happen via js to prevent caching issues. Also I can't yet find an explanation of what the caching issues are/were anywhere yet. Just looking at the MR I don't see why that would be a problem but could be missing something.
Comment #26
plopescThose IDs can still be there, since we are changing the way to improve the Navigation performance.
Comment #27
finnsky commentedProve the need
was in the title not because of caching but because of a11y.
Comment #28
plopescThe
<h4>IDs were removed in https://git.drupalcode.org/project/drupal/-/merge_requests/7980/diffs?co... and they need to be brought back using JS for a11y reasons.The
<li>IDs are still innavigation-menu.html.twig. As part of this issue, it was suggested to remove them from the twig template and bring them back using JS to make the html markup cacheable. It seems that will not be necessary anymore, or at least for now.Removing that part from the issue requirements seems safe to me.
Comment #29
finnsky commentedI was saying that these headings were there from the very beginning of the project and I don't think anyone ever seriously looked into the semantics or accessibility of the headings. That's why we removed them.
What we really need is a quality review of accessibility and structure. And depending on the review results, add or remove headings. I'm not sure they are needed at all.
@ckrina wrote in #22
But I don't understand how caching is related to accessibility and semantics
Comment #30
plopescThey're not directly related to caching, but the way it was supposed to cache the navigation HTML markup in local storage to not serve it in every request was not compatible with having IDs in the navigation HTML markup.
All the discussion and the reasoning is available in #3438976: Implement a caching strategy for the menu links.
Comment #31
katannshaw commentedIt appears to me that the changes in commit b99b9552 and commit d68ff2c9 are causing a11y issues because when there’s more than one menu on the page, each nav needs to have a unique label per WCAG 2.2 1.3.1: Info and Relationships (Level A) and 4.1.2: Name, Role, Value (Level A)
I'm also seeing a related accessibility issues in that each menu should contain a wrapping
<nav>elementThe unique
aria-labelledbyattribute should be added to the<nav>element instead of the<ul>element. Per W3C ARIA Landmark Example > Navigation Landmark, here is how a menu should be rendered when there's more than one menu on the page:You can also skip the heading all-together and add an `aria-label` to the `` element itself.
An important note is that the headings in both commits are both set to be
.visually-hiddenand.focusablewhich is an issue, because you then have visually headings that are keyboard focusable.Other resources explaining this reasoning:
Hope it helps.
Comment #33
finnsky commentedOne backend fix need to be applied here. We can go with here.
Comment #35
plopescComment #36
plopescInitial code in the MR looks good.
Tested locally and worked as expected.
Fixed the Kernel tests failing due to conflicts between
DomDocument::loadHtmland HTML5 tags (https://www.php.net/manual/en/domdocument.loadhtml.php)Updated the issue summary to reflect the last requirements from a11y team.
I think this is ready for final review.
Comment #37
gxleano commentedReview steps
Drupal 11.x.See evidences:
Content Menu

Administration Menu

Help Menu

Everything works as expected ✅
Moving to RTBC.
Comment #38
m4oliveiComment #39
m4oliveiAddressed some duplication in the navigation titles for non-sighted users. See last comment and commit.
Ready for a re-review and accessibility review.
Comment #40
smustgrave commentedWent to review as I got some accessibility knowledge/tools. But issue summary appears incomplete in that the proposed solution just says "Implement this" but MR contains a number of changes so think solution should be properly flushed out.
Will try and pick up once complete.
Comment #41
m4oliveiGood point @smustgrave. Updated the issue description. Back to Needs Review.
Comment #42
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #43
m4oliveiMerged the latest from the 11.x branch. Back to Needs review.
Comment #44
smustgrave commentedCan we get a CR for the template changes? In case some theme have overridden the templates
Comment #45
catchThe module is still experimental and templates are considered @internal, so I don't think we need a CR here - doesn't hurt to have one but not a blocking issue, whereas it looks like an accessibility review still is.
Comment #50
katannshaw commented@finnsky @m4olivei Thank you for rebuilding the tugboat. The Accessibility team, including @rkoller and I, tested the latest work. I just now tested the latest tugboat against the Apple VoiceOver screen reader and this is what I'm seeing in its rotor output and the HeadingsMap browser extension. I'm seeing the following (with screenshots):
Headings: Toolbars have three nav menus with "Administration" heading labels

Landmarks: The toolbar's landmarks contains some generic "Navigation" titles, likely because they have empty headings

In addition, during testing with the Drupal Accessibility Team, we came up with some recommendations that @rkoller has thankfully outlined. The following steps should fix these navigation issues for users of assistive technology:
1. Complementary renamed to:
2. Administrative toolbar content navigation gets replaced by:
3. Administrative toolbar footer navigation:
So we'd end up with the following:
Before
After
Please find details on this proposal in this Google doc, specifically the action items section of the proposal.
Comment #51
catchMoving to needs work for #50.
It looks like this could probably be achieved by moving the aria markup to the individual navigation block plugins.
Comment #52
finnsky commentedThanks for participating everyone!
I added one small change by removing the useless wrapper.
- In comment 50 I see screenshots from the old toolbar. While we need to test the new one. This may be my mistake. When I restarted Tugboat I did not enable our module in it. Sorry
- In the attached Google doc I see sentences like
while I see that it is pronounced in VoiceOver as
`Administrative sidebar, complementary` so nothing needs to be renamed?
We don't know. Let's choose the best option
Other questions in the doc seem to me to be beyond the scope of the current task. At least we can definitely solve them later and not delay this last release blocker.
So I'm moving the task to review again and asking you to do the following:
Answer the question.
Does the current MR satisfy the minimum accessibility requirements? And if it doesn't, what should we do to achieve them?
Comment #55
catchOh good spot in #52, that's definitely the old toolbar, completely missed that given shortcuts, user etc. also exist in the new navigation.
Comment #56
rkollerI’ve taken another look at the current state of the MR and created two small videos to illustrate the difference between the current state of the navigation (check 11.x.mp4) and the state in the MR (check MR.mp4)
The point that still needs some more discussion is the level of granularity of landmarks, as outlined in the first question in the google doc by @katannshaw. In 11.x you currently have the
complementarywrapping landmark and the two navigation landmarks for the content and the footer section (11.x.mp4). With the MR you now have thecomplementarywrapping landmark and another landmark for each of the five navigation blocks (MR.mp4) - three of those blocks even have just a single menu item.We have discussed the matter in the accessibility office hour end of march where we havent come to a consensus which of the variants outlined in the first question of the google doc should be picked. Back then we agreed to ask for feedback over on the accessibility slack about the preferences and expectations of screenreader users in regard to landmark regions - reason is that quite a few screenreader users are part of the community there. But unfortunately we havent received any actionable feedback yet :( In addition to that i’ve posted over in the CMS Garden Rocketchat instance and asked in their a11y channel as well.
The worry and the reason why we tried to get feedback from actual screenreader users simply is, that the number of navigation landmarks might be way too granular - to reach the
mainlandmark with the MR applied you have to pass by eight landmarks first (five navigation landmarks and two more complementary landmarks, both wrappers for the navigation sidebar and the topbar). The docs of the skipto script (https://skipto-landmarks-headings.github.io/page-script-5/config.html) state something in a similar vein:“Strictly” speaking, landmarks should segment a page into semantically clearly distinguishable sections, so a user is able on one hand to understand the sites general structure and on the other hand is able to skip to the section in question more easily. but the five navigation blocks are semantically too close/similar, since together they build the main navigation aka navigation sidebar.
The other minor problem i see, the
complementarylandmark that you get with theasideelement feels semantically wrong,complementaryis about supporting the main content (https://www.w3.org/WAI/ARIA/apg/practices/landmark-regions/), which might be the right choice in cases like for example https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/nav, but for something like the main navigation it feels not like the best pick?Personally I would lean towards a solution with two landmarks, one for the navigation sidebar and one for the navigation topbar. For the sidebar i would use a navigation landmark and label it with
primary, that way it would be crystal clear that this is the main navigation for the admin ui. For the topbar thecomplementarylandmark is fine. But that is only my personal opinion. Curious what Kat and others think about it, plus i still hope to get some feedback from actual screenreader users, those who actually use landmarks on a daily basis would be the most helpful answering this question. :/Comment #57
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #58
catchFrom your description, this sounds sensible to me. Having to click past eight landmarks seems unreasonable. People could also add even more blocks on real sites.
I personally think we should go ahead with that idea here, and open a follow-up to review it with more feedback for actual screen reader users. This is the last blocker to navigation being stable but it's also something that can be tweaked without BC implications once it is stable.
Comment #59
catchComment #60
nod_+1 for the two landmarks
Comment #61
pameeela commentedSeems like there is agreement on the suggested approach of having two landmarks but can someone update the IS with exactly what the proposed markup should be?
Comment #63
mherchelI hate to bikeshed this.
From @rkoller in #56:
I worry that on the front-end of the site, the primary label would be confused with the primary navigation of the site. My thought is it could be named administrative toolbar Thoughts?
Comment #64
mherchelLooking at the 11.x, the current top bar is is an
<aside>with anaria-labelledbyattribute that points to its visually-hidden heading, with the text "Administrative top bar"From my point of view, I don't see any reason to change this (please correct me if I'm wrong).
There are currently two
<nav>elements in the sidebar, which we will consolidate to one.If all this looks correct, I'll update the IS. I also feel like we might need to have a discussion in Slack to make sure we're on the same page. The requirements of this issue keep changing, and we need to lock it down to make progress.
Comment #65
larowlanComment #66
catchThis makes sense to me.
If this is for screenreaders, is 'top bar' meaningful? Should it be something like 'Contextual administration bar'?
Comment #67
finnsky commentedFinally i understood how to test it, let's reduce that amount ;)
https://gyazo.com/4c920476d2acc6ff337dfcae2c245c73
Comment #68
finnsky commentedI think we can go into release like this!
As for the region names themselves, that's something we can decide and adjust later without rushing. Without delaying this last release blocker
Please take a look!
Comment #71
finnsky commentedOne extra landmark found by @rkoller in Slack
Comment #72
katannshaw commentedI love this idea @rkoller and @mherchel's point about the primary nav is 100% valid. Once the extra landmark found by @roller (mentioned in comment #71) is resolved, this looks good to me. Thank you for your work on this.
Comment #73
finnsky commentedNow 2 landmarks how shown on screen in #68
I also fixed the tests. Well, how did I fix them? I removed what was crashing :)
Please review!
Comment #74
rkolleri've applied the latest changes and the landmarks look good now imho (see landmarks.mp4). and left one comment in regard to the word sidebar over on gitlab
Comment #75
rkollerand in regard to the labels for the landmarks referring to #63. i completely agree to the concern @mherchel raised. in the latest iteration the landmark labels are (also see landmarks.mp4):
"administrative sidebar" navigation
"administrative top bar" complementary
that way they are clearly distinguishable from any menu in the frontend. the only worry i have, for sighted users or in the general discussion on slack, the issue queue, or forums, the navigation is addressed by either navigation or navigation sidebar / top bar or navigation top bar. having a different name/label in the aural interface for that component, screenreader users might have trouble searching for something like "administrative sidebar" in the documentation. that might be potentially confusing.
Comment #76
catchI think a follow-up to review alternatives for the region names is a good idea, and I'd be happy going ahead with the not-bad-but-possibly-not-the-best-we-can-do names in this issue so that the HTML structure is stable and the noise from too many landmarks is gone.
Comment #77
finnsky commentedFixed @rkoller feedback from #74
Comment #78
rkolleri agree the naming of the two landmarks can be moved to a followup. uhhh and sorry there is another detail i've just noticed. if you go to
admin/config/user-interface/navigation-blockand enable the edit mode (and for example move one nav block there), in the rotor you see the landmark for the administrative sidebar navigation twice:and strictly speaking it is not the actual administrative sidebar navigation but a dummy you are unable to navigate with. should that maybe moved to a follow up?
Comment #79
finnsky commentedThank you for review!
`admin/config/user-interface/navigation-block`
This is something that will probably change. So I believe that this can also be done later.
Let's merge?
Comment #80
catchI nearly opened a new issue for #78 but instead I've explicitly referenced it from #3521155: Remove Layout Builder dependency for the UI of Navigation admin config so it gets tackled in that issue. It's likely the markup for that page will change dramatically but we'd want to make sure we don't reproduce the same issue when that's done.
Opened #3539715: Review navigation landmark naming for the naming.
I've also updated the issue summary with the proposed resolution that's actually in the MR/discussion now - it was still suggesting adding them to individual blocks.
Comment #81
catchTrying an issue re-title.
Comment #82
kentr commentedJust a heads-up that in #3093378-35: Use ARIA disclosure pattern for submenu buttons in vertical toolbar orientation @cwilcox808 cautioned against using
aria-labelinstead of hidden text for buttons due to lack of support in translation software.I inquired about similar concerns with other html elements for this issue in Slack.
Comment #83
catchI think we should go ahead here and review that more generally if it's an issue for non-button text, this isn't the only place with use aria labels and for me it needs a policy discussion in its own issue.
Comment #86
grimreaperRebasing without merge commit.
Comment #87
grimreaperRebased without merge commit.
Tested, and reviewed: ok
Comment #88
grimreaperComment #89
joelpittet@katannshaw in #3452724-31: Navigation side bar and top bar should have appropriate aria labels #31 laid out that the title should persist very well and it looked like someone added it back as aria-label in https://git.drupalcode.org/project/drupal/-/merge_requests/11122/diffs?c... I didn't see where it got dropped again but just wanted to raise that is is gone and want to ensure that is intentional and not incidental.
Comment #90
catchIf I'm reading correctly, it was removed in https://git.drupalcode.org/project/drupal/-/merge_requests/11122/diffs?c... which removes the aria-label from navigation-menu.html.twig altogether - this is because that template is for the nested individual menus (admin, user etc.) within the navigation toolbar, not for the toolbar itself - and in that case it would be 100% intentional to reduce the labels down to only the main side and top bars and not the nested items.
Comment #91
grimreaperFixed code review.
Comment #92
joelpittetThanks for the twig coding standard fixes, sorry I can't mark them as resolved in gitlab @grimreaper.
@catch Thanks for taking a stab at figuring out why the menu title/label was dropped!
I suspect that’s exactly why the aria-label/heading disappeared, but the result is that each navigation block now renders as an unlabeled list “Shortcuts”, “Content”, “Create”, etc. never reach the DOM when the block label is hidden in config. We still need an accessible name for each block even if we drop the redundant , so I’d like to restore a hidden heading or similar so screen readers can differentiate those sections again.
I would like to end in that I am not an a11y expert nor do I use a screen reader, so feel free to overrule me if someone on this thread is, I just don't want things to unintentionally get worse for those who need it. I'll try to reach out to @katannshaw in Slack to get a take as that was very well described in #31.
Comment #93
katannshaw commented@joelpittet Thanks for asking. To follow accessibility standards I mentioned in my previous comment in another post titled Navigation side bar and top bar should have appropriate aria labels, I do advise that each
<nav>element on a page have a unique heading that's connected to the<nav>using ARIA. In my opinion, it's best to use this pattern:This pattern:
* Allows the heading label to show up in the screen reader's list of headings
* Allows the navigation label to show up in the screen reader's list of landmarks
Both are used for navigation purposes. Here's an example of what the web rotor looks like from The A11y Project > Getting started with macOS VoiceOver:

I hope this helps.
Comment #94
finnsky commentedLast time we agreed that there is no difference between
and
Comment #97
finnsky commented@joelpittet Thanks for participating.
This task, in my opinion, is turning into a discussion of the approach.
Two headers or eight?
Most participants agreed with two headers.
Optional headers for each individual block seem like a problem that needs to be addressed at the core level, not here.
Comment #98
joelpittet@finnsky Right, re #94 we’re on the same page:
aria-labelledbyandaria-labelgive equivalent results, so it’s good to confirm the principle.The snag is in #97: with the current MR the block title is gone entirely. In n
avigation_menu.html.twigwe dropped both the<nav aria-label="{{ title }}">and the hidden<h4>{{ title }}</h4>so nothing else outputs the name. That leaves a single sidebar landmark full of unlabeled lists. I looped @katannshaw as she mentioned this earlier up and we really do need to surface that label somewhere... either by restoring the hidden heading or wiring the title into an aria-label/aria-labelledby — so each navigation block remains discoverable. Two landmarks is fine, but we still need names for the menus inside them.In a (hot) minute I will do a test locally with the instructions for @katannshaw mentioned above as it clarifies what I couldn't sort out of what
That was throwing me when I tried to test this out the first time, I couldn't figure out VO meant.
Again, I am not an expert, but I also don't want to lose valuable information for those who need it, so if you can prove it's not needed, I’d be happy to hear that advice too. Just nobody mentioned the reason behind dropping it, from my scan of the comments.
Comment #99
catch@joelpittet I think the problem is that a
navwith an aria label becomes a landmark, which is what we've been specifically trying to avoid since #3452724-56: Navigation side bar and top bar should have appropriate aria labels. I'm basing this on https://www.w3.org/WAI/ARIA/apg/patterns/landmarks/examples/navigation.htmlSo if we add the aria labels back, we go back to 7 or more landmarks instead of two.
The options then would be:
1. Continue to use nav without a label, because the nav elements are wrapped in another landmark, which is what the MR was previously doing when RTBCed.
2. Stop using the
navelement for the individual menu items.If we can agree that the approach results in the correct number of landmarks, I'd prefer us to move the discussion of the exact markup for individual menus to a follow-up probably.
Comment #100
kentr commentedMy understanding is that
navelements without names are still landmarks (they're just unnamed). Here's screenshot of VoiceOver from a pared-down demo of various submenus inside a labeled parentnav.If it's any guidance, the ARIA Authoring Practices Guide Example Disclosure Navigation Menu doesn't wrap the dropdown submenus in
navelements. It looks like this would correspond to option #2 above: "Stop using the nav element for the individual menu items".[edited to clarify the option #2 that I was referring to]
Comment #101
kentr commentedFollowup:
In my last screenshot, "Submenu 4" is not wrapped in a
navand so doesn't appear in the rotor landmarks menu.Comment #102
smustgrave commentedDon’t mind me if this doesn’t help but I’m fond of ANDI toolbar it’s what DHS accessibility office makes us take their training in. It announces landmarks
Comment #103
catch@kentr thanks that's really useful.
So, to me to match the issue summary I think we should probably do #99.2, which would mean changing the
navfor the individual menus intodiv. And the basis for this would be that we consider the navigation sidebar to be 'three (or more or less) menus in a trenchcoat' e.g. just one navigation element that happens to be subdivided due to site configuration and defaults.I think it then might be worth opening a follow-up to see if there's a better way to represent that subdivision than divs, but that wouldn't be stable blocking then.
Comment #104
finnsky commentedWe've already done that :)
This MR only has one nav element.
Comment #105
catchAhh good point! But this means that given they're now not
navs, we could introduce an aria label or hidden title per #98 without them becoming landmarks again.Added a suggestion on the MR to bring back the hidden titles, not sure the best way to do aria labels there.
Comment #106
kentr commentedThe menu titles appear to be the same as the block labels.
There's already the optional block label display in
block--navigation.html.twig.However, AFAICT this code not used by default because the module install configuration sets
label_display: '0'.Does it make sense to leverage that instead of adding a heading to
navigation-menu.html.twig?[edited to correct typo]
Comment #107
finnsky commentedThese headings become visible when you customize the block.
Comment #108
finnsky commentedIt seems we've stuck here :)
In this regard, I'm raising the previous questions and insisting on answers.
Comment #109
catch#107 shows we can't use the block titles, but I think we could add back the hidden title per #105 and it's (hopefully?) a one-line change to the template.
I don't have a strong opinion on whether that should be explored here in a follow-up, but would be very happy if we could unblock this again.
Comment #110
kentr commentedInstead of adding back the hidden menu titles per #105, what about reworking the block titles as so:
Otherwise:
I imagine problems when both the hidden menu title is added back per #105 and the blocks have been customized to display the block title per #107.
h*elements, both these title and the block titles will display as headings to screen reader users.AFAIK headings would cause navigation problems. But even if the menu titles were standard text instead of headings, it seems this would be confusing verbosity. A screen reader expert should double-check me on this.
Examples:
Here's a screenshot of the VoiceOver rotor with the block titles displayed and the hidden menu titles added back as headings on line 2 of
navigation-menu.html.twig(per #105):Here's a screenshot with the block titles visually-hidden in
block--navigation.html.twigand without the hidden menu titles added back innavigation-menu.html.twig. The only headings in the menu are the block titles.:[edited for clarity]
Comment #111
catchJust discussed this with @ckrina at Drupalcon Vienna and we both think doing #110 makes a lot of sense, so would be great to go ahead with that. Moving to needs work.
Comment #113
oily commentedComment #114
catch@oily the proposed solution here is in #110. The suggestion you applied doesn't match that. If you'd like to try implementing #110 instead that could help get this issue done.
Comment #115
oily commentedI added a code suggestion.
Then edited the IS. Have added the screenshots with explanatory text from #110 to the IS.
This section of the IS probably needs replacing but best done by those more knowledgeable of the history of this issue than me:
Proposed resolution
Add label "Administrative side bar" to the navigation side bar. This aligns nicely with "Administrative top bar" label that we already have for the
<aside>element that wraps the Top Bar.We decided in this issue to explicitly not add aria labels for specific navigation blocks because this resulted in too many landmarks on the page - the one each for side and top bar are sufficient and a good balance.
Comment #116
catch@oily #110 explains why unconditionally adding the block title as a heading could cause problems, and suggests only conditionally adding it when label display is off, see the start of that comment.
Comment #117
oily commentedComment #118
finnsky commentedNow i see
Probably h3 should be more logical here?
Comment #119
finnsky commentedI think it's a bad idea to use headers in different places for configuration.
It's always better to have a single entry point for configuration to avoid confusion.
Comment #120
finnsky commentedComment #121
finnsky commentedThe test failure here is due to the Shortcuts block being displayed even if it doesn't contain any links.
Accordingly, a hidden Shortcuts heading appears on the page.
The test checks to ensure that such text doesn't exist.
Perhaps we should simply remove the check for this text now.
And add a condition to display the block if it doesn't contain any links in the new task.
In any case, this isn't an accessibility bug and isn't related to headings.
Comment #122
catchChanging the test and opening a follow-up seems good.
Comment #123
finnsky commentedI've removed the check for this text.
The tests are green!
Please take a look!
Comment #124
vladimirausPatch applies and works. RTBC.
Comment #125
catchOpened #3557571: Define shortcut navigation block behaviour when there are no shortcuts for the shortcuts follow-up.
Don't think this needs a change record, it's a small markup change to the navigation bar which is not stable yet. If we were changing the markup for something stable and visitor-facing then a change record is useful, but this should not really be overridden.
Removing accessibility review tag because it's had extensive accessibility review at this point.
Comment #129
catchAlso this was a task/bug, not a feature request - just noticed now after more than 100 comments..
Committed/pushed to 11.x and cherry-picked to 11.3.x, thanks!