Skip to content

Commit d74d73e

Browse files
authored
remove unused contrast from Select component (#6272)
1 parent e3f26cc commit d74d73e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.changeset/dirty-chairs-invent.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": major
3+
---
4+
5+
remove unused `contrast` from Select component

packages/react/src/Select/Select.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type {ForwardRefComponent as PolymorphicForwardRefComponent} from '../uti
77
import classes from './Select.module.css'
88

99
export type SelectProps = Omit<
10-
Omit<React.ComponentProps<'select'>, 'size'> & Omit<StyledWrapperProps, 'variant'>,
10+
Omit<React.ComponentProps<'select'>, 'size'> & Omit<StyledWrapperProps, 'variant' | 'contrast'>,
1111
'multiple' | 'hasLeadingVisual' | 'hasTrailingVisual' | 'as'
1212
> & {
1313
placeholder?: string
@@ -38,7 +38,6 @@ const Select = React.forwardRef<HTMLSelectElement, SelectProps>(
3838
block,
3939
children,
4040
className,
41-
contrast,
4241
defaultValue,
4342
disabled,
4443
placeholder,
@@ -53,7 +52,6 @@ const Select = React.forwardRef<HTMLSelectElement, SelectProps>(
5352
return (
5453
<TextInputWrapper
5554
block={block}
56-
contrast={contrast}
5755
disabled={disabled}
5856
size={size}
5957
validationStatus={validationStatus}

0 commit comments

Comments
 (0)