Skip to content

Commit 7e0cbe2

Browse files
authored
Adds boldLabel prop to Option (#1264)
1 parent 8bac766 commit 7e0cbe2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Select/Option.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const Option = forwardRef(({ indeterminate, ...props }, ref) => (
2828
<div className="TitleDescriptionContainer">
2929
<label
3030
className={classNames({
31-
'Label--bold': props.description,
31+
'Label--bold': props.boldLabel,
3232
})}
3333
>
3434
{props.label}

src/Select/SingleSelect.stories.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ export const CustomOptionWithDescriptionAndCheckbox = () => (
194194
Option: ({ ...props }) => (
195195
<Option
196196
{...props}
197+
boldLabel
197198
// eslint-disable-next-line react/prop-types
198199
description={props.data.description}
199200
/>

0 commit comments

Comments
 (0)