Skip to content

Commit

Permalink
fix: SelectButton styles (#2419)
Browse files Browse the repository at this point in the history
* fix: Table goku/gohan colours [MDS-708]

* fix: Table goku/gohan colours [MDS-708]

* fix: SelectButton styles
  • Loading branch information
dkireev authored Oct 4, 2023
1 parent bdc5137 commit f7f90fc
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions workspaces/core/src/selectButton/SelectButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import useSelectButtonContext from './private/utils/useSelectButtonContext';
import mergeClassnames from '../mergeClassnames/mergeClassnames';
import ControlsChevronDownSmall from '../private/icons/ControlsChevronDownSmall';
import ControlsCloseSmall from '../private/icons/ControlsCloseSmall';
import Tag from '../tag/Tag';

const SelectButtonRoot = forwardRef(
(
Expand Down Expand Up @@ -167,23 +168,14 @@ const Chip = ({ children, onClear }: ChipProps) => {
[onClear]
);
return (
<span
onClick={cliclHandler}
className={mergeClassnames(
'chip bg-bulma text-trunks flex items-center justify-center rounded-moon-s-xs cursor-pointer',
size === 'sm' ? 'text-moon-12 h-4 px-0.5' : 'text-moon-14 h-6 px-1'
)}
<Tag
size={size === 'sm' ? '2xs' : 'xs'}
iconRight={
<ControlsCloseSmall onClick={cliclHandler} className="cursor-pointer" />
}
>
<span className={mergeClassnames(size === 'sm' ? 'px-0.5' : 'px-1')}>
{children}
</span>
<ControlsCloseSmall
className={mergeClassnames(
'text-trunks',
size === 'sm' ? 'text-moon-12' : 'text-moon-14'
)}
/>
</span>
{children}
</Tag>
);
};

Expand Down

0 comments on commit f7f90fc

Please sign in to comment.