Skip to content

Commit

Permalink
Make the select item text non-selectable
Browse files Browse the repository at this point in the history
This was making the l-beam cursor appear when hovering over the items,
which is distracting when you want to just select an item for
the select.
  • Loading branch information
fullofcaffeine committed May 27, 2024
1 parent 17f6bbd commit cd537af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/src/custom-select-control-v2/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export const SelectItem = styled( Ariakit.SelectItem )`
padding: ${ ITEM_PADDING };
font-size: ${ CONFIG.fontSize };
line-height: 2.15rem; // TODO: Remove this in default but keep for back-compat in legacy
user-select: none;
&[data-active-item] {
background-color: ${ COLORS.theme.gray[ 300 ] };
}
Expand Down

0 comments on commit cd537af

Please sign in to comment.