Skip to content

Commit

Permalink
fix: add classNameOverride to MultiSelectOption (#21)
Browse files Browse the repository at this point in the history
* fix: add content-box to icon

* feat: add changeset

* fix: update comment

* fix: add classNameOverride to MultiSelectOption

* fix: remove style override

* fix: add new changeset description

* fix: remove html attributes type
  • Loading branch information
kaydwithers authored Sep 4, 2023
1 parent 1c42058 commit 3f71968
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/pink-ghosts-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@kaizen/select": minor
---

Add classNameOverride to MultiSelectOption.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ import { useSelectionContext } from "../../provider"
import styles from "./MultiSelectOption.module.scss"

export interface MultiSelectOptionProps {
classNameOverride?: string
item: MultiSelectItem
}

export const MultiSelectOption = ({
classNameOverride,
item,
}: MultiSelectOptionProps): JSX.Element => {
const { selectionState: state } = useSelectionContext()
Expand All @@ -39,6 +41,7 @@ export const MultiSelectOption = ({
ref={ref}
className={classnames(
styles.option,
classNameOverride,
isSelected && styles.isSelected,
isFocusVisible && styles.isFocusVisible,
isDisabled && styles.isDisabled
Expand Down

0 comments on commit 3f71968

Please sign in to comment.