Skip to content

Commit d20837b

Browse files
Changelog edits for clarity
1 parent fcf9016 commit d20837b

File tree

1 file changed

+49
-53
lines changed

1 file changed

+49
-53
lines changed

CHANGELOG.md

Lines changed: 49 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -2,79 +2,94 @@
22

33
This version introduces some major modernization changes around CSS and drops browser support for XXXX ( to be defined before V23 is published).
44

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.
66

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
88

9-
## Browser Support
9+
## Architecture changes
1010

11-
* **css:** (breaking) Remove support for vendor prefixing (#957)
11+
### Browser Support
1212

13-
## Feature Card Component
13+
* (breaking) Remove support for vendor prefixing (#957)
1414

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
2316

2417
* Modernization:
2518
* Default to CSS vars for font family, size, and line-height (#982)
2619
* Removed `@supports` declarations if they only had font declarations
2720
* `@include text-body-*` and `@include text-heading-*` mixins use CSS vars now
2821
* Edited `@mixin font-size()` to stop outputting a pixel fallback
2922
* Reorganization:
30-
* Renamed `-title-` to `-heading-` in mixins and CSS vars
23+
* (breaking) Renamed `-title-` to `-heading-` in mixins and CSS vars
3124
* and `mzp-u-heading-*` utility classes
3225
* component HTML/CSS classes will follow in a separate PR
3326
* Added font-family declaration to `@include text-body-*` mixins
3427
* Added `--theme-` prefix to variables expected to morph
3528
* 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
3730
* Added `--theme-button-line-height` var
3831
* Bug fixes:
3932
* Moved `@include text-*` to end of declarations
4033

41-
## Color
34+
### Color
4235

4336
* Modernization:
4437
* 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
4639
* Reorganization:
4740
* 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)
4942
* Added new form color variables (`--theme-form-*`, `--theme-field-*`)
5043
* Added status color variables (`--theme-color-success-*`, `--theme-color-error-*`, `--theme-color-warning-*`, `--theme-color-info-*`)
5144
* Removed Sass color variables from `_themes-sass.scss` (use CSS variables instead)
5245

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.
5451

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
5753

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
5956

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
6367
* Card sizes are now:
6468
* Small: `mzp-c-card-small` (smaller text)
6569
* Medium: The default, no modifier class
6670
* Large: `mzp-c-card-large` (larger text)
67-
* Image size recommendations are now based on column layout rather than card size:
68-
* 4-column layout: 450px (low-res), 900px (high-res)
69-
* 3-column layout: 600px (low-res), 1200px (high-res)
70-
* 2-column layout: 930px (low-res), 1860px (high-res)
71+
7172

7273
## Migration Tips
7374

7475
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.
7576

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.
81+
- Affected mixins are:
82+
- `animation`
83+
- `appearance`
84+
- `background-size`
85+
- `box-decoration-break`
86+
- `box-sizing`
87+
- `flexbox`, `flex`, `flex-direction`, `flex-wrap`, `align-items`, `justify-content`
88+
- `grid*-gap`
89+
- `inline-block`
90+
- `multi-column*`
91+
- `transform`, `transform-origin`, `transform-style`
92+
- `transition`, `transition-property`, `transition-duration`, `transition-delay`
7893
* Rename typography mixins `text-title-(2xs|3xs|xs|sm|md|lg|xl|2xl)``text-heading-$1`
7994
* Rename utility classes `mzp-u-title-(2xs|3xs|xs|sm|md|lg|xl|2xl)``mzp-u-heading-$1`
8095
* Replace any remaining `text-display-*` usage with the equivalent `text-heading-*` mixin:
@@ -101,27 +116,9 @@ See the [Migration Guide](https://protocol.mozilla.org/docs/usage/migration) for
101116
* `text-body-*` mixins now declare `font-family`.
102117
* You can remove any `font-family` declarations from places which use these mixins (unless you don't want the default font).
103118
* Removed mixins and functions:
104-
* `type-scale()` function and associated lookup tables
105-
* `text-body-cta` mixin (use `text-body-md` instead)
106-
* You can remove `@supports (--css: variables)` blocks that only contain font declarations, as CSS custom properties are now required.
107-
* This version removes mixins which added vendor-prefixes. Browser support for these is now excellent.
108-
- One migration path is to edit your code to use the unprefixed versions.
109-
- Another option is to move these utility mixins into your own code base (though, be aware they are
110-
no longer used in Protocol and this will not give you backwards compatible Protocol components).
111-
- If you need that level of vendor prefix support consider adding a tool such as
112-
[autoprefixer](https://github.com/postcss/autoprefixer) to your code base.
113-
- Affected mixins are:
114-
- `animation`
115-
- `appearance`
116-
- `background-size`
117-
- `box-decoration-break`
118-
- `box-sizing`
119-
- `flexbox`, `flex`, `flex-direction`, `flex-wrap`, `align-items`, `justify-content`
120-
- `grid*-gap`
121-
- `inline-block`
122-
- `multi-column*`
123-
- `transform`, `transform-origin`, `transform-style`
124-
- `transition`, `transition-property`, `transition-duration`, `transition-delay`
119+
* Remove `type-scale()`
120+
* Remove `text-body-cta` mixin (use `text-body-md` instead)
121+
* You can unwrap color declarations from `@supports (--css: variables)` blocks, as CSS custom properties are now required.
125122
* Rename CSS color variables to use `--theme-` prefix:
126123
* `--(background-color|body-text-color|link-color|heading-text-color)(-*)``--theme-$1$2`
127124
* Removed Sass color variables (use CSS variables instead):
@@ -133,7 +130,6 @@ See the [Migration Guide](https://protocol.mozilla.org/docs/usage/migration) for
133130
* `forms.$form-inactive``var(--theme-form-text-color-inactive)`
134131
* `forms.$(field-border-color|field-border|field-focus-ring)(-*)``var(--theme-$1$2)`
135132
* `forms.$button-border-color-focus``var(--theme-button-border-color-focus)`
136-
* You can remove `@supports (--css: variables)` blocks that only contain color declarations, as CSS custom properties are now required.
137133
* Card component class renames:
138134
* `mzp-c-card-extra-small``mzp-c-card-small`
139135
* `mzp-c-card-medium` → remove (medium is now the default, no class needed)

0 commit comments

Comments
 (0)