Skip to content

Commit b607b17

Browse files
committed
fix: feedback
1 parent 958d967 commit b607b17

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/ui/src/components/Tag/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ import { CloseIcon } from '@ultraviolet/icons'
44
import type { MouseEventHandler, ReactNode } from 'react'
55
import { useMemo } from 'react'
66
import useClipboard from 'react-use-clipboard'
7-
import type { Color } from '../../theme'
87
import { Button } from '../Button'
98
import { Loader } from '../Loader'
109
import { Text } from '../Text'
1110
import { Tooltip } from '../Tooltip'
11+
import type { SENTIMENTS } from './styles.css'
1212
import { closeButtonTag, containerTag, textTag } from './styles.css'
1313

1414
const COPY_DURATION = 2500
1515

1616
type TagProps = {
1717
isLoading?: boolean
1818
onClose?: MouseEventHandler<HTMLButtonElement>
19-
sentiment?: Color
19+
sentiment?: (typeof SENTIMENTS)[number]
2020
disabled?: boolean
2121
copiable?: boolean
2222
copyText?: string
@@ -104,6 +104,7 @@ export const Tag = ({
104104
<button
105105
className={`${className ? `${className} ` : ''}${containerTag({ copiable, disabled, sentiment })}`}
106106
data-testid={dataTestId}
107+
disabled={disabled}
107108
onClick={setCopied}
108109
>
109110
<TagInner disabled={disabled} isLoading={isLoading} onClose={onClose}>

packages/ui/src/components/Tag/styles.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { theme } from '@ultraviolet/themes'
22
import { recipe } from '@vanilla-extract/recipes'
33
import { style } from '@vanilla-extract/css'
44

5-
const SENTIMENTS = [
5+
export const SENTIMENTS = [
66
'danger',
77
'info',
88
'neutral',

0 commit comments

Comments
 (0)