Skip to content

Commit

Permalink
fixing radio buttons - focus state
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejoYarce committed Nov 11, 2024
1 parent 2373c62 commit c4eafd5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Button/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Button } from 'wri-design-systems'
/>
```

### Props
## Props
```
type ButtonProps = Omit<
ChakraButtonProps,
Expand Down
8 changes: 8 additions & 0 deletions src/components/Radio/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ export const StyledRadio = styled(Radio)<{
${({ theme }) => getThemedColor(theme.colors, 'primary', 700)};
outline-offset: 2px;
box-shadow: none;
&[data-checked] {
border: 2px solid
${({ theme, isDisabled }) =>
isDisabled
? getThemedColor(theme.colors, 'neutral', 400)
: getThemedColor(theme.colors, 'primary', 700)} !important;
}
}
&[data-checked] {
Expand Down

0 comments on commit c4eafd5

Please sign in to comment.