Skip to content

Commit

Permalink
fix: tag multiselect styles (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
renemennab authored Apr 23, 2024
1 parent 79238a8 commit fcf3961
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions src/components/TagMultiSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
useState,
} from 'react'

import { useTheme } from 'styled-components'
import styled, { useTheme } from 'styled-components'

import { Chip, ComboBox, ListBoxItem, Select, SelectButton } from '..'

Expand Down Expand Up @@ -86,16 +86,11 @@ function TagMultiSelect({
}}
defaultOpen={false}
triggerButton={
<SelectButton
css={{
borderTopRightRadius: 0,
borderBottomRightRadius: 0,
borderRight: `none`,
width: '150px',
}}
>
Match {matchOptions.find((el) => el.value === searchLogic).label}
</SelectButton>
<MultiSelectMatchButtonContainer>
<SelectButton>
Match {matchOptions.find((el) => el.value === searchLogic).label}
</SelectButton>
</MultiSelectMatchButtonContainer>
}
>
{matchOptions.map(({ value, label }) => (
Expand Down Expand Up @@ -169,3 +164,12 @@ function TagMultiSelect({

export type { TagMultiSelectProps }
export { TagMultiSelect }

const MultiSelectMatchButtonContainer = styled.div`
> div {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: none;
width: 150px;
}
`

0 comments on commit fcf3961

Please sign in to comment.