Skip to content

Commit

Permalink
Merge pull request #30 from josejulio/pass-down-classname
Browse files Browse the repository at this point in the history
fix: MessageEntry passes down the option's class name to the label
  • Loading branch information
josejulio authored Jul 29, 2024
2 parents cc04a3f + a3a7d26 commit b15ae1b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const AssistantMessageEntry = ({
className={classnames(classes.label, 'pf-v5-u-m-xs pf-m-red', {
[classes.activeOption]: selectedOptionIndex === index,
[classes.inactiveOption]: selectedOptionIndex !== undefined && selectedOptionIndex !== index
})}
}, restProps.className)}
onClick={(event) => handleOptionClick(event, index, customOnClick)}
>
{option.title}
Expand Down

0 comments on commit b15ae1b

Please sign in to comment.