-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use container query to reflow Clear all button * Adjust FilterButton to wrap text and expand in height * Convert simple SCSS files to CSS * Remove box shadow from FilterBar container * Add instead of overwriting className in ButtonGroup * Filter buttons go full width on small containers * Add more toppings to multi-select example * Avoid display:contents to fix jumpiness on popover open * CSS tidy ups * Add more detail to changeset * Fix container query value
- Loading branch information
1 parent
c5a0383
commit f10f7a4
Showing
21 changed files
with
174 additions
and
81 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
"@kaizen/components": patch | ||
--- | ||
|
||
FilterBar responsiveness and styling adjustments | ||
|
||
- Box shadow removed from filter bar container | ||
- Filter buttons will now expand in height and reflow text as required | ||
- 'Clear all' button now reflows to a new line | ||
- Filter buttons will go to full width on containers 767px in width or below |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* keep max-width value in sync with other places using this container */ | ||
@container filter-bar-wrapper (max-width: 767px) { | ||
.filter { | ||
flex-basis: 100%; | ||
} | ||
} |
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
24 changes: 24 additions & 0 deletions
24
packages/components/src/Filter/FilterBar/FilterBar.module.css
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.wrapper { | ||
container: filter-bar-wrapper / inline-size; | ||
} | ||
|
||
.filterBar { | ||
display: flex; | ||
padding: var(--spacing-8); | ||
border-radius: var(--border-solid-border-radius); | ||
background-color: var(--color-white); | ||
} | ||
|
||
/* keep max-width value in sync with other places using this container */ | ||
@container filter-bar-wrapper (max-width: 767px) { | ||
.filterBar { | ||
flex-direction: column; | ||
} | ||
} | ||
|
||
.filtersContainer { | ||
display: flex; | ||
flex-grow: 1; | ||
flex-wrap: wrap; | ||
gap: var(--spacing-8); | ||
} |
19 changes: 0 additions & 19 deletions
19
packages/components/src/Filter/FilterBar/FilterBar.module.scss
This file was deleted.
Oops, something went wrong.
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
3 changes: 3 additions & 0 deletions
3
.../components/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.module.css
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.filterBarButton { | ||
width: 100%; | ||
} |
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
6 changes: 6 additions & 0 deletions
6
...s/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.module.css
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* keep max-width value in sync with other places using this container */ | ||
@container filter-bar-wrapper (max-width: 767px) { | ||
.filterMultiSelect { | ||
flex-basis: 100%; | ||
} | ||
} |
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
24 changes: 24 additions & 0 deletions
24
packages/components/src/Filter/FilterButton/FilterButton/FilterButton.module.css
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.filterButton { | ||
gap: var(--spacing-6); | ||
justify-content: space-between; | ||
} | ||
|
||
/* keep max-width value in sync with other places using this container */ | ||
@container filter-bar-wrapper (max-width: 767px) { | ||
.filterButton { | ||
flex-grow: 1; | ||
} | ||
} | ||
|
||
.labelContainer { | ||
display: inline-flex; | ||
flex-wrap: wrap; | ||
} | ||
|
||
.hasSelectedValues { | ||
font-weight: bold; | ||
} | ||
|
||
.labelSeparator { | ||
margin-inline-end: var(--spacing-6); | ||
} |
22 changes: 0 additions & 22 deletions
22
packages/components/src/Filter/FilterButton/FilterButton/FilterButton.module.scss
This file was deleted.
Oops, something went wrong.
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
3 changes: 3 additions & 0 deletions
3
...components/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.module.css
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.filterButtonBase { | ||
height: 100%; | ||
} |
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
Oops, something went wrong.