Problem/Motivation
When we tried to access the navigation links through the tabs, we noticed that the focus outline does not fully cover the longer text in both the secondary and primary navigation bars. The issue needs to be fixed in both navigation bars to ensure the focus outline works properly and covers all the text.
Steps to reproduce
1. Set up the Drupal site, moved on Olivero theme Home page.
2. Edit a menu item in the Primary and secondary navigation to a long text that would take up multiple lines.
3. Access the menu link by tab, focus outline on that long menu item will be show the error.
Proposed resolution
Change the focus outline height with something that would account for longer lengths of texts which require a bigger height for focus.
Remaining tasks
The MR differs from the latest patch. The MR needs to have the correct changes as this is what is used for commit.
Title update. See #51
User interface changes

API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #56 | After_3238618.png | 81.77 KB | roshanibhangale |
| #56 | Before_3238618.png | 83.55 KB | roshanibhangale |
| #40 | 3238618 after #36 patch .png | 63.82 KB | Harish1688 |
| #40 | 3238618 before #36 patch .png | 54.85 KB | Harish1688 |
| focus.png | 28.67 KB | hooroomoo |
Issue fork drupal-3238618
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:
- 3238618-10.1.x
changes, plain diff MR !3986
Comments
Comment #2
hooroomooComment #6
gauravvvv commentedI have attached a patch for same, Please review.
Earlier the focus height was fixed i.e
height: var(--sp3)that was causing problem for menu items which are two liner or more than two. I have addheight: calc(100% - var(--sp2)), So now it will adjust the height automatically.- var(--sp2)is the padding of span. so that it doesn't cutoff the element itself.After patch screenshots -
Desktop:
Mobile:

Comment #7
gauravvvv commentedComment #8
nidhi27Hi,
I think the changes should be in nav-secondary.css.
Comment #9
gauravvvv commentedAny reason for that @nidhi27?
Comment #10
nidhi27Hi @Gauravv,
The changes you have done is for primary menu only. And for that focus is working fine, But original issue description is for secondary menu which contains log out, my account. And for that menu focus is not working as expected.
Check my attached screenshot.
Comment #11
gauravvvv commentedThis is happening in both, primary and secondary menu. I have fixed it for secondary menu also. Attached interdiff with #6.
Please review
Comment #12
nidhi27With the latest patch #11, secondary menu focus is showing as a line.
Comment #13
gauravvvv commentedComment #14
nidhi27With the patch #11, focus on the secondary menu is showing as a dark line.
I have attached the screen shot.
Comment #15
nidhi27With the patch #11, focus of secondary menu is showing as a dark line.

I have attached the screenshot.
Comment #16
nidhi27Comment #17
mgiffordI think this is tied to WCAG SC 1.4.4.
Comment #18
gauravvvv commentedAddressed #15, attached patch and interdiff. please review
Comment #19
varun verma commentedComment #20
asha nair commentedApplied patch #18 successfully and it fixes the issue. Adding screenshots for reference.
Comment #21
varun verma commentedI have reviewed Patch #18 but It's not working for me on hover and on focus, Adding screenshots for reference.
Comment #22
varun verma commentedComment #23
gauravvvv commentedAfter patch:
I have added after patch screenshot.
You have to clear the cache. This might be a cache issue in your screenshot.
Comment #24
varun verma commentedYes @Gauravvvv,
Now working fine Patch #18 its was cache issue. Attached screenshot after clear cache.
Comment #25
smustgrave commentedVerified issue and that patch #18 addresses issue.
Not attaching screenshots as that was done in #20 and #21
Comment #26
bnjmnm#18 No longer applies, probably due to changes in HEAD since the last RTBC
The reroll can be self-rtbc'd without another review cycle, just spot check that the same files are changed and the file size is similar.
Comment #29
rpayanmPlease review.
Comment #30
smustgrave commentedReroll seems fine.
Comment #32
mherchelThere's some changes to the primary menu in here, also. Not sure if that's intentional.
I'm going to look through this a bit more thoroughly tomorrow.
Comment #33
mherchelThis patch is looking pretty good, but has a couple issues:
Thanks for all the work on this!
Comment #34
lokeshsahu commentedUpdated the issue title as per #33 comment.
Comment #35
lokeshsahu commentedAs per comment #33, I have created another patch to address the above issue. I am attaching a screenshot for reference, showing the state before and after applying the patch.
Comment #36
gauravvvv commentedFixed build error, attached interdiff for same. please review
Comment #37
Bushra Shaikh commentedComment #38
smustgrave commentedPlease don’t assign tickets to yourself unless a maintainer. A simple comment should be good.
Comment #39
smustgrave commentedSeems not all the points from #33 were addressed or answered to not be included.
Comment #40
Harish1688 commentedHi
Based on comment #33, I tested all three points using the patch provided in comment #36 and found the following:
1. In the Merge Request !3986 and the patch #36, the '
align-items: center' property was added to the 'region-secondary-menu.pcss.css' file. However, after applying the patch, there were no visible changes in the user interface (UI). so removing this in 3238618-40 patch.2. The issue summary needed an update, but only the issue title was updated in comment #34, the issue summary was also updated with the comment.
3. The height of the focus outlines between the primary and secondary menus was unequal before, but the issue has been resolved by applying the patch provided in comment #36. screenshot was attached to the comment for reference.
Before:

After:

Comment #41
Harish1688 commentedComment #43
Harish1688 commentedpatch test is passed in #40, so restore the status to Need Review.
Comment #44
smustgrave commentedbelieve points from #33 have been addressed.
Comment #46
smustgrave commentedUnrelated failure.
Comment #48
smustgrave commentedSeems unrelated
Comment #50
shweta__sharma commentedRestoring the status as the patch has unrelated failures.
Comment #51
quietone commentedI'm triaging RTBC issues. I read the IS, the comments and the MR.
Not all the points in #33 have been addressed. See https://git.drupalcode.org/project/drupal/-/merge_requests/3986/diffs#no.... I went back and skimmed the comments. The problem is that the MR and the latest patch are not the same. The MR needs to be updated with the latest, correct changes.
This also needs a title change that is not simply a problem statement. Something like, "Allow primary & secondary navigation focus outline to work with long text"
I hid all files except this initial image and the latest before/after screenshots.
I restored the issue summary so that a Remaining tasks section was available. Please keep all sections of the issue summary template to help reviewers and everyone keep track of the work on an issue. Thanks.
So, just a few things to tidy up here.
Comment #53
tauoms commentedComment #54
tauoms commentedCommitted changes from patch 40 to the MR.
Updated issue title.
Please let me know if there are any problems with these changes.
Comment #55
tauoms commentedComment #56
roshanibhangale commentedHi
I have tested the issue on the Drupal 11.x
Steps:
After MR3986 is applied successfully, able to see that the secondary navigation for long text is looking good.
Hence this can be move to RTBC +1
Attaching screenshot for reference.
Comment #62
nod_Committed and pushed eb0e5f464c5 to 11.x and da5cd09f6f9 to 11.2.x and ec78aecacb1 to 10.6.x and 95d051ff301 to 10.5.x. Thanks!
Comment #63
nod_