Skip to content
5 changes: 5 additions & 0 deletions .changeset/dirty-chairs-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": major
---

remove unused `contrast` from Select component
4 changes: 1 addition & 3 deletions packages/react/src/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {ForwardRefComponent as PolymorphicForwardRefComponent} from '../uti
import classes from './Select.module.css'

export type SelectProps = Omit<
Omit<React.ComponentProps<'select'>, 'size'> & Omit<StyledWrapperProps, 'variant'>,
Omit<React.ComponentProps<'select'>, 'size'> & Omit<StyledWrapperProps, 'variant' | 'contrast'>,
'multiple' | 'hasLeadingVisual' | 'hasTrailingVisual' | 'as'
> & {
placeholder?: string
Expand Down Expand Up @@ -38,7 +38,6 @@ const Select = React.forwardRef<HTMLSelectElement, SelectProps>(
block,
children,
className,
contrast,
defaultValue,
disabled,
placeholder,
Expand All @@ -53,7 +52,6 @@ const Select = React.forwardRef<HTMLSelectElement, SelectProps>(
return (
<TextInputWrapper
block={block}
contrast={contrast}
disabled={disabled}
size={size}
validationStatus={validationStatus}
Expand Down
Loading