Skip to content

Commit

Permalink
fix(core-styles): explicit var import for patterns
Browse files Browse the repository at this point in the history
This should be done to all core-styles stylesheets.

But that will have an uncertain effect on CMS.

So for now, just make this work for core-components.
  • Loading branch information
wesleyboar committed Jun 17, 2022
1 parent 1b6d9a8 commit 4c0bf2b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .postcssrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ plugins:

# https://github.com/csstools/postcss-plugins/blob/main/plugin-packs/postcss-preset-env/FEATURES.md
features:
custom-properties:
# https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-properties#options
preserve: false
custom-media-queries: true
media-query-ranges: true
custom-selectors: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Override Bootstrap styles. See:
Styleguide Components.Bootstrap.Form
*/
@import url('../settings/border.css');

.form-control {
border: var(--global-border--normal);
border-radius: 0;
Expand Down
2 changes: 2 additions & 0 deletions libs/core-styles/src/lib/_imports/components/c-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Markup: c-button.html
Styleguide Components.Button
*/
@import url('../settings/color.css');
@import url('../settings/border.css');
@import url("../tools/x-truncate.css");


Expand Down

0 comments on commit 4c0bf2b

Please sign in to comment.