| Bug 2043516 - Update confirmation hint to use design tokens (Nova). r=mtigley
Authored by tmanku on Mon, Jun 15, 11:49 PM. - Reviewers
-
- Group Reviewers
-
- Bugzilla Bug ID
- 2043516
| Time | Test |
|---|
| 0 ms | code-review::generalWARNING: A generic error occurred in the code review bot. | | 0 ms | code-review::mercurial WARNING: The base revision of your patch is not available in the current repository.
Your patch has been rebased on central (revision default): issues may be positioned at the wrong lines. |
Event TimelineItiel added inline comments. | browser/themes/shared/customizableui/panelUI-shared.css |
| 388 | These can also be tokenized |
| 389 | I don't think this works in chrome yet? See D306865 |
| browser/themes/shared/customizableui/panelUI-shared.css |
| 388 | Thank you so much, @Itiel! I'm not seeing an appropriate design token to replace the hard-coded padding values. Would it be best to round both up or down to the nearest token or use with fractional multipliers?
--panel-padding: var(--space-xsmall) var(--space-small); // round down, approx. 4px 8px
--panel-padding: var(--space-small) var(--space-medium); // round up, approx. 8px 12px
--panel-padding: calc(0.375*var(--space-large)) calc(0.625*var(--space-large)); // approx. 6px 10px |
| browser/themes/shared/customizableui/panelUI-shared.css |
| 388 | I was referring to rounding up/down, whatever looks better and not too cramped/spacious.
Using calc() to get the previous non-token values defeats the purpose of these tokens... |
| Path | Size |
|---|
browser/ | themes/ | shared/ | customizableui/ |
| | 8 lines |
| Commit | Tree | Parents | Author | Summary | Date |
|---|
| 6efa4b6aa3f0 | 35d1b929e76e | ac8f36a95301 | Tanvi Manku | Bug 2043516 - Update confirmation hint to use design tokens (Nova). r=mtigley (Show More…) | Mon, Jun 15, 11:43 PM |
- Tue, Jun 16, 9:05 PM2026-06-16 21:05:54 (UTC+0)
- Tue, Jun 16, 5:42 PM2026-06-16 17:42:32 (UTC+0)
- Tue, Jun 16, 3:29 PM2026-06-16 15:29:13 (UTC+0)
- Tue, Jun 16, 2:31 PM2026-06-16 14:31:50 (UTC+0)
browser/themes/shared/customizableui/panelUI-shared.css |