Skip to content

Commit

Permalink
fix(fields): the CoordinatesInput now displays the * when isRequired
Browse files Browse the repository at this point in the history
  • Loading branch information
lwih committed Mar 20, 2024
1 parent 90ab0ef commit e38c209
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/fields/CoordinatesInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,13 @@ const StyledFieldset = styled(Fieldset)<CommonFieldStyleProps>`
&:focus-visible {
outline: 0;
}
${p =>
p.$isRequired &&
`
:after {
}
${p =>
p.$isRequired &&
`
legend:after {
content:" *";
color: ${p.theme.color.maximumRed};
}`}
}
`

0 comments on commit e38c209

Please sign in to comment.