Problem/Motivation

The links in level-2 navigation fill the width of the container (the orange outline in the image), but the hover styling is only applied to the span inside the link (the green outline in the image), the width of which is only as wide as the words it contains. The place that this would likely confuse users most is the cursor changes to a pointer when hovering anywhere over the <a>, but the hover style is only applied when the cursor is over text.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

bnjmnm created an issue. See original summary.

andrewmacpherson’s picture

Removing parent. This doesn't have much bearing on accessibility. It's a glitch with the extent of a clickable area, but I don't think there's anything here that puts disabled users at a notable disadvantage.

djsagar’s picture

Status: Active » Needs review
StatusFileSize
new37.16 KB
new50.51 KB
new709 bytes

Hi @bnjmnm,

I created patch as [er your requirement this patch will resolve your issue please review and provide feedback.

Thanks!

bnjmnm’s picture

Status: Needs review » Needs work

Great @djsagar! It looks like your patch got a "custom commands failed" notice. This is due to directly editing the CSS file instead of compiling the corresponding .pcss.css file and compiling it. Most of us learn of this requirement for the first by seeing this happen to a patch we wrote 🙂
The documentation on developing in Olivero has the info you'll need to contribute CSS (and other!) changes to Olivero.

djsagar’s picture

Status: Needs work » Needs review
StatusFileSize
new1.14 KB

Hi @bnjmnm,

Thank you for your feedback i recreating patch by using documentation on developing in Olivero please review.

abhijith s’s picture

StatusFileSize
new3.1 MB
new8.8 MB

Applied patch #5 on 9.1.x and it works fine.Adding screenshots below.

Before patch;
before

After patch:
after

RTBC +1

katannshaw’s picture

Status: Needs review » Reviewed & tested by the community

@djsagar: I've tested patch #5 just as Abhijith S has and it works great. I'm marking it as RTBC and I think that it's ready for review by a maintainer.

mherchel’s picture

Status: Reviewed & tested by the community » Closed (works as designed)

From my point of view, the current behavior is the desired behavior. I don't think the underline should span the full width of the submenu.

Because this isn't an accessibility issue (I don't believe it is), I'm going to close as works as designed (unless designers or accessibility folks tell me otherwise).