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

feat(box-shadow): remove deprecated layer, use box-shadow mixin #5126

Merged
merged 5 commits into from
Jan 22, 2020

Conversation

tw15egan
Copy link
Member

Based on #2079 (comment)

layer was supposed to be deprecated with the v10 release. This removes references to the layer mixin and relies on the ol' box-shadow mixin instead.

This can be deferred to a larger release, but I wanted to get it in so that it is not get forgotten again.

Changelog

Changed

  • All instances of @include layer('overlay'); are changed to @include box-shadow;

Removed

  • Removed global variable $css--use-layer: true !default;
  • Removed entire src/globals/scss/_layer.scss file.
  • Removed any imports of @import '../../globals/scss/layer';, many of which were unused in the file.

Testing / Reviewing

Ensure components like Dropdown and Tooltip still have box shadows.

@tw15egan tw15egan requested a review from a team as a code owner January 22, 2020 00:03
@ghost ghost requested review from dakahn and joshblack January 22, 2020 00:03
@netlify
Copy link

netlify bot commented Jan 22, 2020

Deploy preview for the-carbon-components ready!

Built with commit 5893c8e

https://deploy-preview-5126--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented Jan 22, 2020

Deploy preview for carbon-elements ready!

Built with commit 5893c8e

https://deploy-preview-5126--carbon-elements.netlify.com

@netlify
Copy link

netlify bot commented Jan 22, 2020

Deploy preview for carbon-components-react failed.

Built with commit 5893c8e

https://app.netlify.com/sites/carbon-components-react/deploys/5e27914d4287750009899602

@netlify
Copy link

netlify bot commented Jan 22, 2020

Deploy preview for the-carbon-components ready!

Built with commit 0df272c

https://deploy-preview-5126--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented Jan 22, 2020

Deploy preview for carbon-components-react failed.

Built with commit 0df272c

https://app.netlify.com/sites/carbon-components-react/deploys/5e28cadbc21b010007b0d253

@netlify
Copy link

netlify bot commented Jan 22, 2020

Deploy preview for carbon-elements ready!

Built with commit 0df272c

https://deploy-preview-5126--carbon-elements.netlify.com

@asudoh asudoh requested review from a team and designertyler and removed request for a team January 22, 2020 06:15
Copy link
Member

@aagonzales aagonzales left a comment

Choose a reason for hiding this comment

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

Yes, perfect thanks for updating this TJ!

@asudoh asudoh merged commit aed0ea2 into carbon-design-system:master Jan 22, 2020
This was referenced Feb 25, 2020
@vprasanth
Copy link

Shouldn't this have been a breaking change?

@joshblack
Copy link
Contributor

Hi @vprasanth! 👋 It definitely seems like there was some miscommunication around this mixin, it was deprecated for the v9 -> v10 transition but that may not have been communicated when folks were migrating. In v10 we ended up removing it after the deprecation since it is no longer useful in the new design language.

@maniax89
Copy link

maniax89 commented Apr 6, 2020

this also bit one of our projects as we had relied on it existing. for now we are going to pin our dependency package to ~10.9

@joshblack
Copy link
Contributor

Note for folks commenting on this PR, created a new PR to reintroduce this mixin and then add an official deprecation path for this utility: #5812

@tw15egan tw15egan deleted the remove-layer branch April 28, 2021 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants