-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(components/lists): tokenize filter styles (#3019)
- Loading branch information
1 parent
9294ddb
commit 25f180e
Showing
7 changed files
with
122 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,5 +26,5 @@ describe('lists-storybook', () => { | |
); | ||
}); | ||
}); | ||
}); | ||
}, true); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 9 additions & 1 deletion
10
libs/components/lists/src/lib/modules/filter/filter-inline-item.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
@use 'libs/components/theme/src/lib/styles/variables' as *; | ||
@use 'libs/components/theme/src/lib/styles/compat-tokens-mixins' as compatMixins; | ||
|
||
@include compatMixins.sky-default-overrides('.sky-filter-inline-item') { | ||
--sky-override-filter-inline-item-margin-right: #{$sky-margin}; | ||
} | ||
|
||
.sky-filter-inline-item { | ||
margin-right: $sky-margin; | ||
margin-right: var( | ||
--sky-override-filter-inline-item-margin-right, | ||
var(--sky-space-gap-form-s) | ||
); | ||
} |
11 changes: 10 additions & 1 deletion
11
libs/components/lists/src/lib/modules/filter/filter-inline.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
@use 'libs/components/theme/src/lib/styles/variables' as *; | ||
@use 'libs/components/theme/src/lib/styles/compat-tokens-mixins' as compatMixins; | ||
|
||
@include compatMixins.sky-default-overrides('.sky-filter-inline') { | ||
--sky-override-filter-inline-background-color: #{$sky-background-color-neutral-light}; | ||
} | ||
|
||
@include compatMixins.sky-modern-overrides('.sky-filter-inline') { | ||
--sky-override-filter-inline-background-color: #{$sky-background-color-neutral-light}; | ||
} | ||
|
||
.sky-filter-inline { | ||
background-color: $sky-background-color-neutral-light; | ||
background-color: var(--sky-override-filter-inline-background-color); | ||
display: flex; | ||
align-items: center; | ||
} |
24 changes: 15 additions & 9 deletions
24
libs/components/lists/src/lib/modules/filter/filter-summary-item.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
@use 'libs/components/theme/src/lib/styles/mixins' as mixins; | ||
@use 'libs/components/theme/src/lib/styles/variables' as *; | ||
@use 'libs/components/theme/src/lib/styles/compat-tokens-mixins' as compatMixins; | ||
|
||
@include compatMixins.sky-default-host-overrides() { | ||
--sky-override-filter-summary-item-margin-right: 5px; | ||
} | ||
|
||
@include compatMixins.sky-modern-overrides('.sky-filter-summary-item') { | ||
--sky-override-filter-summary-item-padding: 0 0 | ||
var(--sky-space-gap-action_group-s) 0; | ||
} | ||
|
||
.sky-filter-summary-item { | ||
display: inline-block; | ||
padding: var(--sky-override-filter-summary-item-padding); | ||
} | ||
|
||
:host:not(:last-child) { | ||
margin-right: $sky-margin-inline-compact; | ||
} | ||
|
||
@include mixins.sky-theme-modern() { | ||
.sky-filter-summary-item { | ||
padding: 0 0 5px 0; | ||
} | ||
margin-right: var( | ||
--sky-override-filter-summary-item-margin-right, | ||
var(--sky-space-gap-action_group-s) | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters