Skip to content

Commit c89c932

Browse files
author
Norisz Fay
committed
Backed out 2 changesets (bug 1872788) for causing mochitest failure on test_moz_button_group.html CLOSED TREE
Backed out changeset a9528d76a91b (bug 1872788) Backed out changeset 4fde278ae659 (bug 1872788)
1 parent eb97ea2 commit c89c932

File tree

11 files changed

+146
-63
lines changed

11 files changed

+146
-63
lines changed

browser/components/preferences/dialogs/sitePermissions.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ menulist.website-status {
5050

5151
#permissionsDisableDescription {
5252
color: var(--text-color-deemphasized);
53+
line-height: 110%;
5354
}
5455

5556
#permissionsDisableCheckbox {

browser/components/storybook/docs/README.typography.stories.md

Lines changed: 67 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
We set `font: message-box` at the root of `common-shared.css` and `global.css` stylesheets so that both in-content and the chrome can have access to operating system font families.
66

7-
We also don't specify line height units and rely on the default.
8-
97
### In-content
108
<table class="sb-preview-design-tokens">
119
<thead>
@@ -15,6 +13,7 @@ We also don't specify line height units and rely on the default.
1513
<th>Preview</th>
1614
<th>Font size</th>
1715
<th>Font weight</th>
16+
<th>Line height</th>
1817
</tr>
1918
</thead>
2019
<tbody>
@@ -32,6 +31,9 @@ We also don't specify line height units and rely on the default.
3231
<td>
3332
<code>300</code>
3433
</td>
34+
<td>
35+
<code>1.3</code>
36+
</td>
3537
</tr>
3638
<tr>
3739
<th>Heading Large</th>
@@ -47,6 +49,9 @@ We also don't specify line height units and rely on the default.
4749
<td>
4850
<code>300</code>
4951
</td>
52+
<td>
53+
<code>1.3</code>
54+
</td>
5055
</tr>
5156
<tr>
5257
<th>Heading Medium</th>
@@ -62,6 +67,9 @@ We also don't specify line height units and rely on the default.
6267
<td>
6368
<code>600</code>
6469
</td>
70+
<td>
71+
<code>1.3</code>
72+
</td>
6573
</tr>
6674
<tr>
6775
<th>Root (body)</th>
@@ -77,6 +85,9 @@ We also don't specify line height units and rely on the default.
7785
<td>
7886
<code>normal</code>
7987
</td>
88+
<td>
89+
<code>1.5</code>
90+
</td>
8091
</tr>
8192
<tr>
8293
<th>Body Small</th>
@@ -92,6 +103,9 @@ We also don't specify line height units and rely on the default.
92103
<td>
93104
<code>normal</code>
94105
</td>
106+
<td>
107+
<code>1.5</code>
108+
</td>
95109
</tr>
96110
</tbody>
97111
</table>
@@ -110,6 +124,7 @@ Note that there currently isn't a hierarchy of multiple headings on the chrome s
110124
<th>Preview</th>
111125
<th>Font keyword</th>
112126
<th>Font weight</th>
127+
<th>Line height</th>
113128
</tr>
114129
</thead>
115130
<tbody>
@@ -127,6 +142,9 @@ Note that there currently isn't a hierarchy of multiple headings on the chrome s
127142
<td>
128143
<code>600</code>
129144
</td>
145+
<td>
146+
<code>normal</code>
147+
</td>
130148
</tr>
131149
<tr>
132150
<th>Menu</th>
@@ -142,6 +160,9 @@ Note that there currently isn't a hierarchy of multiple headings on the chrome s
142160
<td>
143161
<code>normal</code>
144162
</td>
163+
<td>
164+
<code>normal</code>
165+
</td>
145166
</tr>
146167
<tr>
147168
<th>Heading</th>
@@ -157,6 +178,9 @@ Note that there currently isn't a hierarchy of multiple headings on the chrome s
157178
<td>
158179
<code>600</code>
159180
</td>
181+
<td>
182+
<code>normal</code>
183+
</td>
160184
</tr>
161185
<tr>
162186
<th>Root (body)</th>
@@ -172,12 +196,15 @@ Note that there currently isn't a hierarchy of multiple headings on the chrome s
172196
<td>
173197
<code>normal</code>
174198
</td>
199+
<td>
200+
<code>normal</code>
201+
</td>
175202
</tr>
176203
</tbody>
177204
</table>
178205

179206
## Design tokens
180-
Type setting relies on design tokens for font size and font weight.
207+
Type setting relies on typography design tokens for for font size, font weight, and line height.
181208

182209
#### Font size
183210
<table class="sb-preview-design-tokens">
@@ -283,6 +310,41 @@ Type setting relies on design tokens for font size and font weight.
283310
</tbody>
284311
</table>
285312

313+
#### Line height
314+
<table class="sb-preview-design-tokens">
315+
<thead>
316+
<tr>
317+
<th>Base token</th>
318+
<th>In-content value</th>
319+
<th>Chrome value</th>
320+
</tr>
321+
</thead>
322+
<tbody>
323+
<tr>
324+
<th>
325+
<code>--line-height-small</code>
326+
</th>
327+
<td>
328+
<code>1.3</code>
329+
</td>
330+
<td>
331+
<code>unset</code>
332+
</td>
333+
</tr>
334+
<tr>
335+
<th>
336+
<code>--line-height-default</code>
337+
</th>
338+
<td>
339+
<code>1.5</code>
340+
</td>
341+
<td>
342+
<code>normal</code>
343+
</td>
344+
</tr>
345+
</tbody>
346+
</table>
347+
286348
## Helpers
287349
### text-and-typography.css
288350

@@ -317,6 +379,7 @@ h1,
317379
.heading-large {
318380
font-weight: var(--font-weight-light, var(--font-weight-bold));
319381
font-size: var(--font-size-xlarge);
382+
line-height: var(--line-height-small)
320383
}
321384
```
322385

@@ -332,6 +395,7 @@ h2,
332395
.heading-medium {
333396
font-weight: var(--font-weight-bold);
334397
font-size: var(--font-size-large);
398+
line-height: var(--line-height-small);
335399
}
336400
```
337401

browser/themes/shared/preferences/preferences.css

Lines changed: 37 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,16 @@ groupbox[data-category] {
7070
}
7171

7272
html|h1 {
73-
margin: 0 0 var(--space-small);
73+
margin: 0 0 8px;
7474
}
7575

7676
html|h2 {
77-
margin: var(--space-small) 0 var(--space-xxsmall) 0;
77+
margin: 16px 0 4px;
7878
}
7979

8080
description.indent,
8181
.indent:not(#browserPrivateEngineSelection) > description {
8282
color: var(--text-color-deemphasized);
83-
84-
/* Ensures margin on checkboxes, radios, and description don't create a big gap between the input and indented description */
85-
margin-top: calc(var(--space-xsmall) * -1);
8683
}
8784

8885
button,
@@ -103,16 +100,8 @@ button[flex] {
103100

104101
description,
105102
label {
106-
margin: var(--space-xxsmall) 0;
107-
}
108-
109-
label {
110-
margin: var(--space-xxsmall) 0;
111-
112-
&.tail-with-learn-more + a {
113-
margin-block: var(--space-xxsmall);
114-
margin-inline: var(--space-small) 0;
115-
}
103+
line-height: 1.8em;
104+
margin: 0;
116105
}
117106

118107
.description-deemphasized {
@@ -131,17 +120,18 @@ button > hbox > label {
131120
}
132121

133122
.indent {
134-
margin-inline-start: calc(var(--checkbox-size) + var(--checkbox-margin-inline)) !important;
123+
/* This should match the checkboxes/radiobuttons' width and inline margin,
124+
such that when we have a toggle with a label followed by another element
125+
with this class, the other element's text aligns with the toggle label. */
126+
margin-inline-start: 22px !important;
135127
}
136128

137-
checkbox,
138-
radio {
139-
margin: var(--space-small) 0;
129+
checkbox {
130+
margin-inline: 0;
131+
}
140132

141-
&.tail-with-learn-more + a {
142-
margin-block: var(--space-small);
143-
margin-inline: var(--space-small) 0;
144-
}
133+
.tail-with-learn-more {
134+
margin-inline: 0 10px;
145135
}
146136

147137
/* Add a bit of space to the end of descriptions to
@@ -193,7 +183,8 @@ radio {
193183
*/
194184

195185
.subcategory:not([hidden]) ~ .subcategory {
196-
padding-top: var(--space-xlarge);
186+
margin-top: 16px;
187+
padding-top: 16px;
197188
border-top: 1px solid var(--in-content-border-color);
198189
}
199190

@@ -434,7 +425,7 @@ richlistitem[selected] .actionsMenu:focus-visible {
434425

435426
#homepageGroup menulist,
436427
#homepageGroup html|input {
437-
margin: var(--space-xsmall) 0;
428+
margin: 5px 0;
438429
}
439430

440431
#homepageGroup html|input {
@@ -468,7 +459,7 @@ richlistitem[selected] .actionsMenu:focus-visible {
468459
#homeContentsGroup .checkbox-icon[src] {
469460
-moz-context-properties: fill;
470461
fill: currentColor;
471-
margin-inline-end: var(--checkbox-margin-inline);
462+
margin-inline: 2px 8px;
472463
width: 16px;
473464
}
474465

@@ -484,10 +475,6 @@ richlistitem[selected] .actionsMenu:focus-visible {
484475
margin-block: 0;
485476
}
486477

487-
#homeContentsGroup .checkbox-label {
488-
margin-inline-end: var(--space-small);
489-
}
490-
491478
.addon-with-favicon .menu-iconic-icon {
492479
margin-inline-start: 0;
493480
}
@@ -751,11 +738,16 @@ html|dialog,
751738
margin-inline-end: 0;
752739
}
753740

741+
#noFxaAccount {
742+
line-height: 1.2em;
743+
}
744+
754745
#noFxaAccount > label:first-child {
755746
margin-bottom: 0.6em;
756747
}
757748

758749
#noFxaCaption {
750+
line-height: 30px;
759751
margin-block: 0 4px;
760752
}
761753

@@ -782,6 +774,7 @@ html|dialog,
782774
}
783775

784776
.openLink {
777+
line-height: 30px;
785778
cursor: pointer;
786779
}
787780

@@ -1100,6 +1093,7 @@ menulist[indicator=true] > menupopup menuitem[indicator=true]:not([image]) > .me
11001093

11011094
#no-results-message > label {
11021095
margin: 2px 0;
1096+
line-height: 30px;
11031097
}
11041098

11051099
/* Proxy port input */
@@ -1232,7 +1226,7 @@ richlistitem .text-link:hover {
12321226
}
12331227

12341228
.featureGateDescription {
1235-
margin-inline-start: calc(var(--checkbox-size) + var(--checkbox-margin-inline));
1229+
margin-inline-start: 28px;
12361230
}
12371231

12381232
.checkbox-row {
@@ -1248,8 +1242,13 @@ richlistitem .text-link:hover {
12481242
margin-inline-start: 6px;
12491243
}
12501244

1245+
#moreFromMozillaCategory-header .title {
1246+
margin-block-end: 4px;
1247+
}
1248+
12511249
#moreFromMozillaCategory-header .subtitle {
12521250
margin-block-end: 24px;
1251+
line-height: 1.4em;
12531252
}
12541253

12551254
#moreFromMozillaCategory:not([hidden]) {
@@ -1277,6 +1276,7 @@ richlistitem .text-link:hover {
12771276
#moreFromMozillaCategory .product-description-box {
12781277
padding-inline-start: 30px;
12791278
margin: 2px 0;
1279+
line-height: 1.4em;
12801280
}
12811281

12821282
#moreFromMozillaCategory .description {
@@ -1343,6 +1343,7 @@ richlistitem .text-link:hover {
13431343
.qr-code-box-title {
13441344
font-size: .87em;
13451345
font-weight: normal;
1346+
line-height: 1.42em;
13461347

13471348
text-align: center;
13481349

@@ -1366,6 +1367,7 @@ richlistitem .text-link:hover {
13661367

13671368
#moreFromMozillaCategory .qr-code-link {
13681369
font-size: .87em;
1370+
line-height: 1.42em;
13691371
}
13701372

13711373
@media (prefers-color-scheme: dark) {
@@ -1446,6 +1448,10 @@ richlistitem .text-link:hover {
14461448
display: flex;
14471449
}
14481450

1451+
.web-appearance-choice input {
1452+
margin-top: 0.4em;
1453+
}
1454+
14491455
#translations-manage-install-list {
14501456
height: 220px;
14511457
overflow: auto;

0 commit comments

Comments
 (0)