Skip to content

Commit

Permalink
fix(filter-ms): move classNameOverride to removable button container (#…
Browse files Browse the repository at this point in the history
…3934)

* fix(kaio/filter-ms): move classNameOverride to button container

* fix(select/filter-ms): move classNameOverride to button container
  • Loading branch information
HeartSquared authored Aug 1, 2023
1 parent 4d9f0c1 commit 32fc863
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/shaggy-carrots-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@kaizen/components": patch
"@kaizen/select": patch
---

Move `classNameOverride` to outer container of FilterMultiSelect removable trigger button.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const RemovableFilterTrigger = ({
return (
<FilterButtonRemovable
ref={ref}
classNameOverride={classNameOverride}
triggerButtonProps={{
...buttonProps,
label,
Expand All @@ -30,7 +31,6 @@ export const RemovableFilterTrigger = ({
labelCharacterLimitBeforeTruncate
),
isOpen: menuTriggerState.isOpen,
classNameOverride,
}}
removeButtonProps={{
onClick: onRemove,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ export type RemovableFilterTriggerProps = {

export const RemovableFilterTrigger = ({
onRemove,
classNameOverride,
...filterTriggerProps
}: RemovableFilterTriggerProps): JSX.Element => {
const removeButtonLabel = `Remove filter - ${filterTriggerProps.label}`
return (
<div className={styles.trigger}>
<div className={`${styles.trigger} ${classNameOverride}`}>
<FilterTriggerButton
classNameOverride={styles.triggerButton}
{...filterTriggerProps}
Expand Down

0 comments on commit 32fc863

Please sign in to comment.