Skip to content

Commit fbc31ed

Browse files
Update protocol-assets and publish V21 (#1055)
* Update protocol-assets and publish V21
1 parent a99ac05 commit fbc31ed

File tree

7 files changed

+29
-25
lines changed

7 files changed

+29
-25
lines changed

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
# HEAD
1+
# 21.0.0
2+
3+
## Features
4+
5+
* **assets:** (breaking) Update @mozilla-protocol/assets to 6.0.1
6+
* **css:** Update navigation and footer with Mozilla logo lockup.
27

38
## Bug Fixes
49

510
* **css:** Notification bar padding of links only working for complete sentences (#1000)
611
* **css:** Missing explicit `mzp-c-notification-bar-cta` distinction (#1041)
12+
* **css:** Fix logo size in navigation in Firefox variant on large screen
13+
14+
## Migration Tips
15+
16+
* The new Mozilla wordmark files are the same height but longer. If you are explicitly declaring a width for them, you should update it (Tip: check your CSS background images too.)
17+
* The flat logo files are no longer square, so check their dimensions too (social files remain square)
718

819
# 20.0.0
920

assets/package/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Install package with NPM and add it to your dependencies:
2020
</tr>
2121
<tr>
2222
<td>Version</td>
23-
<td><a href="https://github.com/mozilla/protocol/blob/main/CHANGELOG.md">20.0.0</a></td>
23+
<td><a href="https://github.com/mozilla/protocol/blob/main/CHANGELOG.md">21.0.0</a></td>
2424
</tr>
2525
<tr>
2626
<td>Releases</td>

assets/package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mozilla-protocol/core",
3-
"version": "20.0.0",
3+
"version": "21.0.0",
44
"description": "A design system for Mozilla's websites.",
55
"repository": {
66
"type": "git",

assets/sass/protocol/components/_footer.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,12 @@
5252
margin-bottom: $spacing-xl;
5353

5454
a {
55-
background: url('#{$image-path}/logos/mozilla/logo-word-hor-white.svg') no-repeat;
56-
57-
@include background-size(100px, 32px);
55+
background: url('#{$image-path}/logos/mozilla/logo-lockup-hor-white.svg') no-repeat;
56+
@include background-size(134px, 32px);
5857
@include image-replaced;
5958
display: inline-block;
6059
height: 32px;
61-
width: 100px;
60+
width: 134px;
6261
}
6362
}
6463

assets/sass/protocol/components/_navigation.scss

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@
7878
@include bidi(((float, left, right),));
7979

8080
a {
81-
@include background-size(84px, 24px);
81+
@include background-size(101px, 24px);
8282
@include image-replaced;
83-
background-image: url('#{$image-path}/logos/mozilla/logo-word-hor.svg');
83+
background-image: url('#{$image-path}/logos/mozilla/logo-lockup-hor.svg');
8484
background-repeat: no-repeat;
8585
display: block;
8686
height: 24px;
8787
margin: 0 auto;
88-
width: 84px;
88+
width: 101px;
8989
}
9090

9191
@media #{$mq-md} {
@@ -98,13 +98,6 @@
9898

9999
@media #{$mq-lg} {
100100
@include bidi(((margin, $spacing-lg ($spacing-md * 2) $spacing-lg 0, $spacing-lg 0 $spacing-lg ($spacing-md * 2)),));
101-
102-
a {
103-
@include background-size(112px, 32px);
104-
height: 32px;
105-
margin-top: $spacing-xs;
106-
width: 112px;
107-
}
108101
}
109102

110103
@media #{$mq-xl} {
@@ -127,6 +120,7 @@
127120

128121
@media #{$mq-lg} {
129122
a {
123+
@include background-size(109px, 36px);
130124
background-image: url('#{$image-path}/logos/firefox/logo-word-hor.svg');
131125
height: 36px;
132126
margin-top: 1px;

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "protocol",
3-
"version": "20.0.0",
3+
"version": "21.0.0",
44
"private": true,
55
"author": "Mozilla",
66
"description": "A design system for Mozilla's websites.",
@@ -32,7 +32,7 @@
3232
"@frctl/fractal": "^1.5.15",
3333
"@frctl/mandelbrot": "^1.10.3",
3434
"@frctl/nunjucks": "^2.0.15",
35-
"@mozilla-protocol/assets": "^5.4.0",
35+
"@mozilla-protocol/assets": "^6.0.1",
3636
"@mozilla-protocol/tokens": "^6.0.0",
3737
"babel-loader": "^10.0.0",
3838
"clean-webpack-plugin": "^4.0.0",

0 commit comments

Comments
 (0)