You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+49-53Lines changed: 49 additions & 53 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,79 +2,94 @@
2
2
3
3
This version introduces some major modernization changes around CSS and drops browser support for XXXX ( to be defined before V23 is published).
4
4
5
-
The good news is we don't expect any visible changes in modern browsers and you should be able to do some automated visual regression testing to help with the migration.
5
+
The good news is we don't expect many visible changes in modern browsers and you should be able to do some automated visual regression testing to help with the migration.
6
6
7
-
Introducing theme variables! CSS variables beginning with `--theme-` will adjust based on media queries.
7
+
Introducing theme variables! CSS variables beginning with `--theme-` will adjust based on media queries. Check them out in assets/sass/protocol/root
8
8
9
-
## Browser Support
9
+
## Architecture changes
10
10
11
-
***css:** (breaking) Remove support for vendor prefixing (#957)
11
+
### Browser Support
12
12
13
-
## Feature Card Component
13
+
* (breaking) Remove support for vendor prefixing (#957)
14
14
15
-
***component:** (breaking) Removed the deprecated Feature Card component. Use the [Split](https://protocol.mozilla.org/components/detail/split) component instead.
16
-
17
-
## Split Component
18
-
19
-
***component:** (breaking) Removed `mzp-l-split-pop-top`, `mzp-l-split-pop-bottom`, and `mzp-l-split-pop` layout classes from Split component
20
-
***component:** (breaking) Removed `mzp-l-split-media-overflow` and `mzp-l-split-media-constrain-height` layout classes from Split component
21
-
22
-
## Typography
15
+
### Typography
23
16
24
17
* Modernization:
25
18
* Default to CSS vars for font family, size, and line-height (#982)
26
19
* Removed `@supports` declarations if they only had font declarations
27
20
*`@include text-body-*` and `@include text-heading-*` mixins use CSS vars now
28
21
* Edited `@mixin font-size()` to stop outputting a pixel fallback
29
22
* Reorganization:
30
-
* Renamed `-title-` to `-heading-` in mixins and CSS vars
23
+
*(breaking) Renamed `-title-` to `-heading-` in mixins and CSS vars
31
24
* and `mzp-u-heading-*` utility classes
32
25
* component HTML/CSS classes will follow in a separate PR
33
26
* Added font-family declaration to `@include text-body-*` mixins
34
27
* Added `--theme-` prefix to variables expected to morph
35
28
* Added `--token-` prefix to unchanging variables
36
-
* Re-name font-size tokens to use a scale instead of tshirt sizes for names
29
+
* Re-named font-size tokens to use a scale instead of tshirt sizes for names
37
30
* Added `--theme-button-line-height` var
38
31
* Bug fixes:
39
32
* Moved `@include text-*` to end of declarations
40
33
41
-
## Color
34
+
###Color
42
35
43
36
* Modernization:
44
37
* Default to CSS vars for all color values
45
-
*Removed`@supports` declarations if they only had color declarations
38
+
*Unwrapped`@supports` declarations if they only contained color declarations
46
39
* Reorganization:
47
40
* Added `--theme-` prefix to color variables expected to morph between light/dark modes
48
-
* Renamed `-title-` to `-heading-` in (to match typography naming)
41
+
*(breaking) Renamed `-title-` to `-heading-` in CSS mixins (to match typography naming)
49
42
* Added new form color variables (`--theme-form-*`, `--theme-field-*`)
50
43
* Added status color variables (`--theme-color-success-*`, `--theme-color-error-*`, `--theme-color-warning-*`, `--theme-color-info-*`)
51
44
* Removed Sass color variables from `_themes-sass.scss` (use CSS variables instead)
52
45
53
-
## Section Heading Component
46
+
## Component changes
47
+
48
+
### Feature Card
49
+
50
+
* (breaking) Removed the deprecated Feature Card component. Use the [Split](https://protocol.mozilla.org/components/detail/split) component instead.
54
51
55
-
***component:** (breaking) Updated spacing around Section Heading component. Review your usage to ensure the new spacing works with your layout.
56
-
***component:** Added `mzp-t-section-heading-nospace` theme class to remove padding from Section Heading.
52
+
### Split
57
53
58
-
## Card Component
54
+
* (breaking) Removed `mzp-l-split-pop-top`, `mzp-l-split-pop-bottom`, and `mzp-l-split-pop` layout classes from Split component
55
+
* (breaking) Removed `mzp-l-split-media-overflow` and `mzp-l-split-media-constrain-height` layout classes from Split component
59
56
60
-
***component:** (breaking) Renamed `mzp-c-card-extra-small` to `mzp-c-card-small`
61
-
***component:** (breaking) Removed `mzp-c-card-medium` class (medium is now the default)
62
-
* Card size modifiers now only affect typography, not card width
57
+
### Section Heading
58
+
59
+
* (breaking) Updated spacing around Section Heading component. Review your usage to ensure the new spacing works with your layout.
60
+
* Added `mzp-t-section-heading-nospace` theme class to remove padding from Section Heading.
61
+
62
+
### Card
63
+
64
+
* (breaking) Renamed `mzp-c-card-extra-small` to `mzp-c-card-small`
65
+
* (breaking) Removed `mzp-c-card-medium` class (medium is now the default)
66
+
* Card size modifiers now only affect typography, not card width - use layouts instead
63
67
* Card sizes are now:
64
68
* Small: `mzp-c-card-small` (smaller text)
65
69
* Medium: The default, no modifier class
66
70
* Large: `mzp-c-card-large` (larger text)
67
-
* Image size recommendations are now based on column layout rather than card size:
See the [Migration Guide](https://protocol.mozilla.org/docs/usage/migration) for automated scripts (VS Code find/replace and terminal commands) to help with these changes.
75
76
76
-
* Browser support
77
-
* If you require support for older browsers we recommend adding some post-processing to your workflow for CSS variables and font sizes in pixels.
77
+
* CSS variables are in `assets/sass/protocol/root` you will need to include this in your site bundle.
78
+
* This version removes mixins which added vendor-prefixes.
79
+
- If you need that level of vendor prefix support consider adding a tool such as
80
+
[autoprefixer](https://github.com/postcss/autoprefixer) to your code base.
0 commit comments