Skip to content

Commit

Permalink
Adds boldLabel prop to Option (#1264)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbarber authored Jul 3, 2024
1 parent 8bac766 commit 7e0cbe2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Select/Option.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Option = forwardRef(({ indeterminate, ...props }, ref) => (
<div className="TitleDescriptionContainer">
<label
className={classNames({
'Label--bold': props.description,
'Label--bold': props.boldLabel,
})}
>
{props.label}
Expand Down
1 change: 1 addition & 0 deletions src/Select/SingleSelect.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export const CustomOptionWithDescriptionAndCheckbox = () => (
Option: ({ ...props }) => (
<Option
{...props}
boldLabel
// eslint-disable-next-line react/prop-types
description={props.data.description}
/>
Expand Down

0 comments on commit 7e0cbe2

Please sign in to comment.