Closed Bug 1869442 Opened 1 year ago Closed 1 year ago

Tweak Report Broken Site CSS to improve focus feedback

Categories

(Firefox :: General, enhancement)

Desktop
All
enhancement

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: twisniewski, Assigned: twisniewski)

References

Details

Attachments

(1 file)

As per Itiel's suggestion, it may be best to alter this line (menulist:has(+ input:invalid)) to:

menulist:has(+ input:invalid):not(:focus-visible)

Why not using an html:select instead? I don't see why that wouldn't work and would avoid the ugly input hack.

Flags: needinfo?(twisniewski)

Also :has is not unconditionally enabled in chrome code so if we want to use it we probably want to do that

Why not using an html:select instead?

Good idea. I can try changing to a select soon. I remember I started with a select and changed to a menulist for some reason; possibly on request from Gijs or mossop, or possibly just because something wasn't working very well.

Also :has is not unconditionally enabled in chrome code so if we want to use it we probably want to do that

Good to know! Is there a blocker for why not? I'm already shipping that rule in 121/122, so it's a shame I didn't know about that until now (sorry) :S

Flags: needinfo?(twisniewski)

(In reply to Thomas Wisniewski [:twisniewski] from comment #3)

Good to know! Is there a blocker for why not? I'm already shipping that rule in 121/122, so it's a shame I didn't know about that until now (sorry) :S

No, it's just a bit more work to make the preference not affect chrome stylesheets so we generally don't do it unless we need to.

I just took another look at using html:select instead of menulist, and it will be a bit of a mess. The panel tab-key handling JS doesn't seem to recognize selects, so I can't tab to it in the UI. The styling is also not the same/branded for selects as it is for menulist. So I suspect it will be even more work to use select, sadly, and I think it's best for us to do that in a follow-up patch.

For now I'll just tweak the CSS for the focus behavior, since even if the red outline doesn't appear (because :has is disabled), then there will be a text message displayed under the input.

(In reply to Thomas Wisniewski [:twisniewski] from comment #5)

I just took another look at using html:select instead of menulist, and it will be a bit of a mess. The panel tab-key handling JS doesn't seem to recognize selects, so I can't tab to it in the UI. The styling is also not the same/branded for selects as it is for menulist. So I suspect it will be even more work to use select, sadly, and I think it's best for us to do that in a follow-up patch.

That seems very fixable tho. Can you make sure there's at least a follow-up on file?

That seems very fixable tho. Can you make sure there's at least a follow-up on file?

Yes. I just filed bug 1869823.

Assignee: nobody → twisniewski
Status: NEW → ASSIGNED
Pushed by twisniewski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a3aae77486d1 improve focus ring visibility on Report Broken Site inputs; r=emilio,desktop-theme-reviewers
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: