Closed (fixed)
Project:
Drupal core
Version:
10.3.x-dev
Component:
Olivero theme
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jan 2021 at 16:43 UTC
Updated:
22 May 2024 at 21:29 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
djsagar commentedComment #3
djsagar commentedComment #4
poojakural commentedComment #5
poojakural commented@mherchel not able to replicate the issue. Could you please provide SS.
Comment #6
poojakural commentedComment #7
gauravvvv commentedI have attached a patch and after patch screenshot for reference. Please review.
Comment #8
gauravvvv commentedComment #9
imalabyaThe default value for overflow property is visible, so we don't have to add it unless we are trying to override the value. Removing the whole property in the patch.
Comment #10
imalabyaRe-uploading the patch
Comment #12
gauravvvv commentedPatch #10, works fine. moving to RTBC.
Attached after patch screenshot for reference
Comment #14
gauravvvv commentedUnrelated failure, moving back to RTBC
Comment #15
mherchelThanks for the patch.
The
overflowproperty was put in place to ensure that the menu items do not overlap other menu items as the CSS transition is being performed. This patch breaks that. We need to figure out another way to do this.Comment #17
gauravvvv commentedComment #18
chetanbharambe commentedVerified and tested merge request !1073 - https://git.drupalcode.org/project/drupal/-/merge_requests/1073.patch
Patch applied successfully and looks good to me.
Testing Steps:
# Goto: Appearance -> Apply Olivero theme
# Goto: admin/structure/menu/manage/main?destination=/en/admin/structure/menu
# Add the submenus under any main navigation menu
# Goto Responsiveness devices
# Perform the accessibility and observe the below mentioned results.
Expected Results:
# After applying merge request !1073, Focus states on mobile second-level navigation items should not be cut off. Users should see a proper focus on the respective navigations.
Actual Results:
# Focus states on mobile second-level navigation items can get cut off.
Please refer attached screenshots for the same.
Looks good to me.
Can be a move to RTBC.
Comment #19
lauriiiThe patch adds a lot of more spacing to links in the mobile menu. This can be seen in the screenshots posted in #18. I don't think that's desired, so moving back to needs work.
Comment #20
vikashsoni commentedApplied patch #7 working fine
Thnaks for the patch
For ref sharing screenshots....
Comment #25
mgiffordLooks like https://www.w3.org/WAI/WCAG21/Understanding/focus-visible.html
Comment #26
santosh_verma commentedI am addressing the comment #19 in this patch, I have made the necessary adjustment to the padding by changing it from var(--sp0-5) to var(--sp0-25), which is the smallest value available. This change successfully resolved the issue related to the “Focus states on mobile second level.” attaching the patch and inderdiff.
I attempted to create a merge request but encountered an error on my local machine. As a workaround, I am creating a patch file in the hopes that this solution will be helpful.
Comment #27
santosh_verma commentedComment #28
smustgrave commentedIssue summary should be updated with proposed solution.
Also as UI change before/after screenshots should be added.
Comment #29
Harish1688 commentedComment #30
Harish1688 commented1. Update the issue summary with proposed solution,
2. I have tested patch #26 and it is working fine. As requested in #28, I am attaching a screenshot for reference.
Before


After
RTBC +1
Comment #31
Harish1688 commentedComment #32
smustgrave commentedStill missing screenshots.
Comment #33
Harish1688 commentedstrange, I have checked the images on others system, it's visible on some and breaks on some.
so updated the images again.
Images:
3191727 after patch 26.png
3191727 before patch 26.png
Comment #34
smustgrave commentedIssue appears to have been resolved. Updated issue summary.
Comment #35
gauravvvv commentedUpdated attributions
Comment #36
mherchelThis patch works by adding a bit of vertical padding to the mobile second-level menu, which makes room for the focus outline. This slightly changes the design, but I think this is okay (no one's going to notice).
Code-wise, it's creating a duplicate selector, though. The rule should be placed within the existing
.primary-nav__menu--level-2block around line 153 ofnav-primary.pcss.css.Other than that its a straightforward fix.
Comment #37
mherchelComment #38
santosh_verma commentedworking on it
Comment #39
santosh_verma commentedAddressing the comment #36, and created a patch along with interdiff. No additional screenshots are being added as they are the same as the ones uploaded in comment #33.
Comment #40
mherchelComment #41
smustgrave commentedRefactor looks good.
Comment #42
lauriiiIt looks like the padding breaks the close animation. There's a blue border visible during the animation:
Comment #43
santosh_verma commentedworking on it
Comment #44
santosh_verma commentedIn this patch, I have addressed the comment #42 by adjusting the styling. The issue was that the padding on the ul(primary-nav__menu--level-2) element was causing the animation to break. To fix this, I have removed the padding from the ul(primary-nav__menu--level-2) and instead added padding to the first and last child of the second level items (primary-nav__menu-item--level-2). This solution addresses both the problem of focus cut off and the animation breaking.
Comment #45
santosh_verma commentedComment #46
smustgrave commentedCan confirm I'm also seeing the results from #44 applying the patch.
Comment #48
chetansonawaneComment #49
chetansonawaneI checked the same patch #44 it is working fine with php 8.3, Drupal 11 requires PHP 8.3.

Comment #50
chetansonawaneComment #51
nod_RTBC looks fine, Can I get the changes in a MR please? Thanks!
Comment #54
ahsannazir commentedComment #55
smustgrave commentedCopy to MR seems fine.
Comment #60
nod_Committed and pushed 924d567aac to 11.x and 1e0296d353 to 11.0.x and 4c8f3371e4 to 10.4.x and 57e4625a18 to 10.3.x. Thanks!