Skip to content

Commit

Permalink
fix: border radius dom warning (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
mguellsegarra authored Jan 8, 2025
1 parent ca5c7c8 commit edd85fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/ui/FieldSet/FieldSet.styles.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import styled from "styled-components";

export const FieldSetElement = styled.fieldset<{ borderRadius?: string }>`
export const FieldSetElement = styled.fieldset<{ $borderRadius?: string }>`
padding: 0.5rem;
border-color: #d9d9d9;
border-width: 1px;
border-style: solid;
border-radius: ${(props) => props.borderRadius || "5px"};
border-radius: ${(props) => props.$borderRadius || "5px"};
font-family:
ui-sans-serif,
system-ui,
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/FieldSet/FieldSet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const FieldSet = (props: FieldSetProps): React.ReactElement => {
);

return (
<FieldSetElement borderRadius={`${borderRadius || token.borderRadius}px`}>
<FieldSetElement $borderRadius={`${borderRadius || token.borderRadius}px`}>
<Legend>{labelComponent}</Legend>
{children}
</FieldSetElement>
Expand Down

0 comments on commit edd85fc

Please sign in to comment.