Skip to content

Commit

Permalink
fix: use disabled text color in input and select
Browse files Browse the repository at this point in the history
Apply correct text color for input and select when element is disabled.
  • Loading branch information
SashaShostyr authored and SimeonC committed Apr 25, 2024
1 parent 49d5858 commit e6cf4f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions system/core/src/components/InputWithIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const baseStyles = css`
& > input,
& > select {
color: currentColor;
&,
&[data-pseudo='focus'],
&:focus {
Expand Down
4 changes: 2 additions & 2 deletions system/react-select/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const IconWrapper = styled.div`
const IndicatorWrapper = styled.div`
height: 20px;
svg {
color: var(--text);
color: currentColor;
}
`;

Expand Down Expand Up @@ -327,7 +327,7 @@ export function useReactSelectConfig<
backgroundColor: isDisabled
? 'var(--surface-disabled)'
: 'var(--surface)',
color: 'var(--text)',
color: isDisabled ? 'var(--text-disabled)' : 'var(--text)',
boxShadow,
display: 'grid',
gridTemplateAreas: icon
Expand Down

0 comments on commit e6cf4f8

Please sign in to comment.