Skip to content

Commit c757eb0

Browse files
Make the select item text non-selectable
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.
1 parent c259417 commit c757eb0

File tree

1 file changed

+1
-0
lines changed
  • packages/components/src/custom-select-control-v2

1 file changed

+1
-0
lines changed

packages/components/src/custom-select-control-v2/styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ export const SelectItem = styled( Ariakit.SelectItem )`
118118
padding: ${ ITEM_PADDING };
119119
font-size: ${ CONFIG.fontSize };
120120
line-height: 2.15rem; // TODO: Remove this in default but keep for back-compat in legacy
121+
user-select: none;
121122
&[data-active-item] {
122123
background-color: ${ COLORS.theme.gray[ 300 ] };
123124
}

0 commit comments

Comments
 (0)