Skip to content

Commit ddb2d0c

Browse files
authored
fix(colorpickers): prevent arrow from positioning over a ColorSwatchDialog tooltip (#1927)
1 parent 8e3f3fc commit ddb2d0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/avatars/demo/avatar.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import README from '../README.md';
2222
args={{ type: TYPE[1] }}
2323
argTypes={{
2424
backgroundColor: { control: 'color' },
25-
badge: { control: 'number' },
25+
badge: { control: 'text' },
2626
foregroundColor: { control: 'color' },
2727
children: { control: 'text', table: { category: 'Avatar.Text' } },
2828
type: {

packages/colorpickers/src/elements/ColorSwatch/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export const ColorSwatch = forwardRef<HTMLTableElement, IColorSwatchProps>(
137137
return (
138138
<StyledCell key={value} role={role}>
139139
<StyledColorSwatchLabel $backgroundColor={value}>
140-
<Tooltip content={label}>
140+
<Tooltip content={label} zIndex={1}>
141141
<StyledColorSwatchInput
142142
aria-label={label}
143143
name={name}

0 commit comments

Comments
 (0)