Skip to content

Commit

Permalink
fix: MD2 Checkbox.Android disabled color (#3937)
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-dickinson authored Jun 28, 2023
1 parent a5168ae commit 1188ea2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Checkbox/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const getAndroidControlColor = ({
if (theme.isV3) {
return theme.colors.onSurfaceDisabled;
}
return theme.colors.text;
return theme.colors.disabled;
}

if (checked) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/__tests__/Checkbox/utils.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe('getAndroidSelectionControlColor - checkbox color', () => {
checked: false,
})
).toMatchObject({
selectionControlColor: getTheme(false, false).colors.text,
selectionControlColor: getTheme(false, false).colors.disabled,
});
});

Expand Down

0 comments on commit 1188ea2

Please sign in to comment.