Skip to content

Commit

Permalink
Import '@spartacus/styles/scss/core' in the storefrontapp BEFORE impo…
Browse files Browse the repository at this point in the history
…rting Bootstrap, instead of importing it inside '@spartacus/styles'
  • Loading branch information
Platonn authored and kpawelczak committed Dec 18, 2024
1 parent 0decd69 commit 5f26018
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions projects/storefrontapp/src/styles.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@import 'styles-config';

// ORDER IMPORTANT: Spartacus core first
@import '@spartacus/styles/scss/core';

// ORDER IMPORTANT: Bootstrap next
@import 'bootstrap/scss/reboot';
@import 'bootstrap/scss/type';
@import 'bootstrap/scss/grid';
Expand Down Expand Up @@ -28,4 +32,5 @@
// @import 'bootstrap/scss/link'; DOESNT EXIST IN BOOTSTRAP 4
@import 'bootstrap/scss/dropdown';

// ORDER IMPORTANT: Spartacus styles last
@import '@spartacus/styles';
2 changes: 1 addition & 1 deletion projects/storefrontstyles/_index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'scss/core';
// @import 'scss/core'; - now the import is moved to storefrontapp's styles
@import 'scss/app';
@import 'scss/root';
@import 'scss/page-template';
Expand Down

0 comments on commit 5f26018

Please sign in to comment.