Closed Bug 1902083 Opened 2 years ago Closed 1 year ago

Support inner padding in moz-button

Categories

(Toolkit :: UI Widgets, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: mstriemer, Assigned: tgiles)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

(Keywords: perf-alert, Whiteboard: [recomp])

Attachments

(2 files)

Our toolbarbuttons have an inner padding that is a click target for the button, and shows that the button is hovered even though the mouse is outside of the hover-visible button. This is a nice improvement that gives the button a larger target, and makes it clickable when the window and cursor are up against the edge of the screen.

There should be some way of setting the inner padding on the moz-button to accommodate this, specifically for the sidebar-main buttons.

This should be possible by adding either padding to the :host or margin to the button and updating the hover/active styles like so:

button {
  :host(:hover) & {}
  :host(:hover:active) & {}
}
See Also: → 1879923
Assignee: nobody → tgiles

Allow hover styles to appear outside of moz-button

Add CSS variables to control inline and block padding on moz-button

Attachment #9417829 - Attachment description: Bug 1902083 - Allow inner padding of moz-button to be set. r=#recomp-reviewers → WIP: Bug 1902083 - Allow inner padding of moz-button to be set. r=#recomp-reviewers
Attachment #9417829 - Attachment description: WIP: Bug 1902083 - Allow inner padding of moz-button to be set. r=#recomp-reviewers → Bug 1902083 - Support outer padding in moz-button. r=#recomp-reviewers

Change moz-buttons in sidebar-main.mjs to be "toolbar" buttons

Attachment #9418876 - Attachment description: Bug 1902083 - Move sidebar padding into toolbar moz-buttons. r=#recomp-reviewers,#sidebar-reviewers → Bug 1902083 - Move sidebar padding into moz-buttons. r=#recomp-reviewers,#sidebar-reviewers
Pushed by tgiles@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d67293d33421 Support outer padding in moz-button. r=reusable-components-reviewers,desktop-theme-reviewers,jules,hjones,dao https://hg.mozilla.org/integration/autoland/rev/57667e89d782 Move sidebar padding into moz-buttons. r=reusable-components-reviewers,sidebar-reviewers,desktop-theme-reviewers,hjones,jsudiaman,dao,tabbrowser-reviewers
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
Regressions: 1918638
Regressions: 1918692
Regressions: 1918676
Regressions: 1919035
Regressions: 1919403

(In reply to Pulsebot from comment #3)

Pushed by tgiles@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d67293d33421
Support outer padding in moz-button.
r=reusable-components-reviewers,desktop-theme-reviewers,jules,hjones,dao
https://hg.mozilla.org/integration/autoland/rev/57667e89d782
Move sidebar padding into moz-buttons.
r=reusable-components-reviewers,sidebar-reviewers,desktop-theme-reviewers,
hjones,jsudiaman,dao,tabbrowser-reviewers

Perfherder has detected a browsertime performance change from push 57667e89d7829978215a88bf55edf27fbda94c72.

Improvements:

Ratio Test Platform Options Absolute values (old vs new) Performance Profiles
12% outlook ContentfulSpeedIndex linux1804-64-shippable-qr fission warm webrender 699.66 -> 616.78 Before/After
11% outlook ContentfulSpeedIndex linux1804-64-shippable-qr cold fission webrender 1,157.02 -> 1,030.53 Before/After
10% outlook ContentfulSpeedIndex linux1804-64-shippable-qr fission warm webrender 696.27 -> 627.11 Before/After

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.

If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a sheriff to do that for you.

You can run these tests on try with ./mach try perf --alert 2169

For more information on performance sheriffing please see our FAQ.

Keywords: perf-alert

I don't think this patch has anything to do with the perf change mentioned in comment 5...

Regressions: 1921190
Blocks: 1921959
Regressions: 1923948
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: