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

Wrap styles of BpkLink and bpk-stylesheets in layers #3102

Closed
wants to merge 3 commits into from
Closed

Conversation

Sybsw
Copy link
Contributor

@Sybsw Sybsw commented Nov 29, 2023

A test of using @layer in css to fix upstream a CSS specificity bug in footer

Remember to include the following changes:

  • README.md (If you have created a new component)
  • Component README.md
  • Tests
  • Storybook examples created/updated
  • For breaking changes or deprecating components/properties, migration guides added to the description of the PR. If the guide has large changes, consider creating a new Markdown page inside the component's docs folder and link it here

@Sybsw Sybsw added the patch Patch production bug label Nov 29, 2023
@include bpk-focus-indicator;
}
@layer utility {
/* stylelint-disable-next-line no-duplicate-at-import-rules, no-invalid-position-at-import-rule */
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Had to disable two lint rules here, mixins needs imported twice, each for the two layers.
This could be solved by combining theme and utility into one layer

Copy link
Member

Choose a reason for hiding this comment

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

I was going to say everything in this file should come under one layer that I would see as base as this is core across everything and acts as the base the system then builds on

Copy link

Visit https://backpack.github.io/storybook-prs/3102 to see this build running in a browser.

Copy link

Visit https://backpack.github.io/storybook-prs/3102 to see this build running in a browser.

@@ -16,65 +16,67 @@
* limitations under the License.
*/

@import '~normalize.css';
@import '../bpk-mixins/index.scss';
@layer base {
Copy link
Contributor

@mungodewar mungodewar Nov 30, 2023

Choose a reason for hiding this comment

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

I suggest that before this line we define all the layers upfront, something like:

@layer base, components, overrides;

@olliecurtis
Copy link
Member

Superseeded by #3111

@olliecurtis olliecurtis deleted the LOOM-1089 branch December 11, 2023 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Patch production bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants