Skip to content

Commit

Permalink
Merge pull request #582 from UKHomeOffice/fix-sass-warnings
Browse files Browse the repository at this point in the history
Page: Fix sass warnings
  • Loading branch information
daniel-ac-martin authored Jun 5, 2024
2 parents d03e983 + 615e014 commit 9d42396
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/page/assets/Page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ html {
border-color: $hods-secondary-button-shadow-colour;
border-width: $hods-secondary-button-border-width $hods-secondary-button-border-width 0 $hods-secondary-button-border-width;
// Padding must be adjusted to account for new border size
padding: (govuk-spacing(2) - $hods-secondary-button-border-width)
(govuk-spacing(2) + $govuk-border-width-form-element - $hods-secondary-button-border-width)
(govuk-spacing(2) - ($button-shadow-size / 2));
padding: calc(govuk-spacing(2) - $hods-secondary-button-border-width)
calc(govuk-spacing(2) + $govuk-border-width-form-element - $hods-secondary-button-border-width)
calc(govuk-spacing(2) - ($button-shadow-size / 2));
box-shadow: 0 $button-shadow-size 0 $hods-secondary-button-shadow-colour;

&,
Expand All @@ -76,9 +76,9 @@ html {
&:focus {
// Must reinstate original border widths and padding
border-width: $govuk-border-width-form-element;
padding: (govuk-spacing(2) - $govuk-border-width-form-element)
padding: calc(govuk-spacing(2) - $govuk-border-width-form-element)
govuk-spacing(2)
(govuk-spacing(2) - $govuk-border-width-form-element - ($button-shadow-size / 2));
calc(govuk-spacing(2) - $govuk-border-width-form-element - ($button-shadow-size / 2));
}
}
}
Expand Down

1 comment on commit 9d42396

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://hods.netlify.app as production
🚀 Deployed on https://6660b3848e6c13102e2e1c8e--hods.netlify.app

Please sign in to comment.