Skip to content

Commit

Permalink
fix(components): fix cursor state on EmptySelectorButton (#16283)
Browse files Browse the repository at this point in the history
When hovering an enabled `EmptySelectorButton`, (ex: walking through
creating a protocol in PD redesign and adding pipettes/modules), the
cursor should be `pointer`.

Closes RQA-3197
  • Loading branch information
ncdiehl11 authored Sep 18, 2024
1 parent 7600ef2 commit 534fb53
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/src/atoms/buttons/EmptySelectorButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { Flex } from '../../primitives'
import {
BORDERS,
COLORS,
CURSOR_DEFAULT,
CURSOR_POINTER,
Icon,
SPACING,
StyledText,
Expand Down Expand Up @@ -41,6 +43,7 @@ export function EmptySelectorButton(
border: none;
width: ${buttonSizing};
height: ${buttonSizing};
cursor: ${disabled ? CURSOR_DEFAULT : CURSOR_POINTER};
&:focus-visible {
outline: 2px solid ${COLORS.white};
box-shadow: 0 0 0 4px ${COLORS.blue50};
Expand Down

0 comments on commit 534fb53

Please sign in to comment.