Skip to content

Commit

Permalink
Removed reliance on govuk-heading-m class
Browse files Browse the repository at this point in the history
Removed redundant CSS declarations
  • Loading branch information
peterhudec committed Mar 19, 2024
1 parent 9e64b77 commit 5d1440d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/client/components/Form/elements/FieldWrapper/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,11 @@ const StyledFieldsetNoStyling = styled('fieldset')`
`

const StyledLegend = styled('legend')`
box-sizing: border-box;
display: table;
white-space: normal;
font-weight: 700;
font-size: 19px;
padding: 0;
margin: 0;
padding-bottom: ${SPACING.SCALE_1};
* {
margin-bottom: ${SPACING.SCALE_1} !important;
}
${(props) =>
props.error &&
`
Expand Down Expand Up @@ -137,7 +132,6 @@ const FieldInner = ({
// FIXME: This shouldn't be a fieldset
<StyledFieldset showBorder={showBorder}>
<StyledLegend
className="govuk-heading-m"
error={error}
showBorder={showBorder}
bigLegend={bigLegend}
Expand Down

0 comments on commit 5d1440d

Please sign in to comment.