Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all mixins supporting vendor prefixes (Fix #957) #1043

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stephaniehobson
Copy link
Contributor

@stephaniehobson stephaniehobson commented Mar 20, 2025

⚠️ DO NOT MERGE ⚠️ Let's save this one for a major breaking version release

Description

This version removes mixins which added vendor-prefixes. Browser support for these is now excellent.

  • I have recorded this change in CHANGELOG.md.

Issue

Fix #957

Testing

View the affected components to make sure they are still displaying properly.

This version removes mixins which added vendor-prefixes. Browser support for these is now excellent.

- One migration path is to edit your code to use the unprefixed versions.
- Another option is to move these utility mixins into your own code base (though, be aware they are
  no longer used in Protocol and this will not give you backwards compatible Protocol components).
- If you need that level of vendor prefix support consider adding a tool such as
  [autoprefixer](https://github.com/postcss/autoprefixer) to your code base.
- Affected mixins are:
  - `animation`
  - `appearance`
  - `background-size`
  - `box-decoration-break`
  - `box-sizing`
  - `flexbox`, `flex`, `flex-direction`, `flex-wrap`, `align-itmes`, `justify-content,`
  - `transform`, `transform-origin`, `transform-style`
  - `transition`, `transition-property`, `transition-duration`, `transition-delay`
Copy link
Contributor

@janbrasna janbrasna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💟 Love it!

Unfortunately I can't seem to identify the mzp-a-fade-* build issue just from glancing it, pretty sure it's all in the correct order… 🤷

Some copy/formatting nits in the meantime:

- `background-size`
- `box-decoration-break`
- `box-sizing`
- `flexbox`, `flex`, `flex-direction`, `flex-wrap`, `align-itmes`, `justify-content,`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- `flexbox`, `flex`, `flex-direction`, `flex-wrap`, `align-itmes`, `justify-content,`
- `flexbox`, `flex`, `flex-direction`, `flex-wrap`, `align-items`, `justify-content,`

@@ -58,7 +74,7 @@
* Update references to the `call-out` SCSS file to `callout` in any `@import` or `@use` rules.
** e.g. `@use 'components/call-out';` should change to `@use 'components/callout';`
* The rebuilt Callout doesn't feature integrated brand logos. Use Logo and Wordmark components instead.
* The rebuilt Compact Callout lacks an integrated logo, so it no longer positions the logo at one end of the component. A Logo or Wordmark component should appear in the body instead.
* The rebuilt Compact Callout lacks an integrated logo`, `so it no longer positions the logo at one end of the component. A Logo or Wordmark component should appear in the body instead.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* The rebuilt Compact Callout lacks an integrated logo`, `so it no longer positions the logo at one end of the component. A Logo or Wordmark component should appear in the body instead.
* The rebuilt Compact Callout lacks an integrated logo, so it no longer positions the logo at one end of the component. A Logo or Wordmark component should appear in the body instead.

- `box-sizing`
- `flexbox`, `flex`, `flex-direction`, `flex-wrap`, `align-itmes`, `justify-content,`
- `transform`, `transform-origin`, `transform-style`
- `transition`, `transition-property`, `transition-duration`, `transition-delay`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also removed are inline-block (nobody should be using, but still…) and multi-column* mixins; as well as grid*-gap prefixing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Audit use of vendor prefix mixins
2 participants