Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Move the classname prop to root in SplittButton toggler
Browse files Browse the repository at this point in the history
  • Loading branch information
tinkertrain committed Jun 14, 2021
1 parent 00710b1 commit 19e5929
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/DropList/DropList.togglers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ export const SplittedButton = forwardRef(
) => {
return (
<ControlGroup
className="DropListToggler SplitButtonTogglerControlGroup"
className={classNames(
className,
'DropListToggler',
'SplitButtonTogglerControlGroup'
)}
data-cy="DropList.SplitButtonTogglerControlGroup"
{...rest}
>
Expand All @@ -141,7 +145,6 @@ export const SplittedButton = forwardRef(
aria-expanded={isActive}
buttonRef={ref}
className={classNames(
className,
'DropListToggler',
'SplitButton__Toggler',
isActive && 'is-active'
Expand Down

0 comments on commit 19e5929

Please sign in to comment.