Support inner padding in moz-button
Categories
(Toolkit :: UI Widgets, enhancement, P3)
Tracking
()
| 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) & {}
}
Updated•2 years ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
Allow hover styles to appear outside of moz-button
Add CSS variables to control inline and block padding on moz-button
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
Change moz-buttons in sidebar-main.mjs to be "toolbar" buttons
Updated•1 year ago
|
https://hg.mozilla.org/mozilla-central/rev/d67293d33421
https://hg.mozilla.org/mozilla-central/rev/57667e89d782
Comment 5•1 year ago
|
||
(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.
Updated•1 year ago
|
I don't think this patch has anything to do with the perf change mentioned in comment 5...
Description
•