Skip to content

Commit

Permalink
fix: <fieldset> element overflows (#3072)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored May 1, 2024
1 parent 1b8acc7 commit 7a9a1f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion editor.planx.uk/src/@planx/components/Checklist/Public.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ const ChecklistComponent: React.FC<Props> = ({
container
spacing={layout === ChecklistLayout.Images ? 2 : 0}
component="fieldset"
sx={{ border: "none", padding: 0 }}
>
<legend style={visuallyHidden}>{text}</legend>
{options ? (
Expand Down
1 change: 0 additions & 1 deletion editor.planx.uk/src/@planx/components/DateInput/Public.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const DateInputPublic: React.FC<Props> = (props) => {
<Card handleSubmit={formik.handleSubmit}>
<Box
component="fieldset"
sx={{ p: 0, border: 0 }}
role="group"
aria-describedby={[
props.description ? DESCRIPTION_TEXT : "",
Expand Down
5 changes: 5 additions & 0 deletions editor.planx.uk/src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,11 @@ const getThemeOptions = ({
hr: {
marginLeft: 0,
},
fieldset: {
minInlineSize: "unset",
padding: 0,
border: 0,
},
},
},
MuiButtonBase: {
Expand Down

0 comments on commit 7a9a1f2

Please sign in to comment.