With new layout we can always display colour text

This commit is contained in:
Jackson Harper 2022-04-05 16:09:25 -07:00
parent db7b499576
commit cdd950f1a7

View file

@ -228,7 +228,6 @@ function LabelOption(props: LabelOptionProps): JSX.Element {
// Boolean(isCreateMode)
// )
const isCreating = isCreateMode && !labelId
const textDisplay = !isCreating && !isDropdownOption ? 'none' : 'unset'
const { text, border, colorName, background } = getLabelColorObject(
color as LabelColor
)
@ -268,7 +267,6 @@ function LabelOption(props: LabelOptionProps): JSX.Element {
css={{
m: '$1',
color: '$grayText',
display: textDisplay,
fontSize: '$3',
whiteSpace: 'nowrap',
textTransform: 'capitalize',
@ -283,7 +281,6 @@ function LabelOption(props: LabelOptionProps): JSX.Element {
css={{
m: '$1',
color: '$grayText',
display: textDisplay,
fontSize: '$3',
whiteSpace: 'nowrap',
'@md': {
@ -296,9 +293,6 @@ function LabelOption(props: LabelOptionProps): JSX.Element {
{isDropdownOption ? <Box css={{ pr: '$2' }} /> : null}
</HStack>
)
// colorName,
// color: hexCode,
// icon: <LabelColorIcon fillColor={fillColor} strokeColor={strokeColor} />,
}
function getLabelColorObject(color: LabelColor) {