Skip to content

Commit

Permalink
Remove display block style on hint component
Browse files Browse the repository at this point in the history
In v3.8.0 we added the ability for block level elements to be
rendered inside hints by switching from using a `span` to a `div`.

However, we kept the `display: block` styling (which would now be
redundant as this is the default for divs). This meant we weren't
forcing users to update their HTML and we could avoid a breaking change.

We now want to tidy up that redundant CSS as part of v4.0.0.
  • Loading branch information
Vanita Barrett committed Nov 19, 2021
1 parent 693ff65 commit 0ce4cfc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/govuk/components/hint/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
.govuk-hint {
@include govuk-font($size: 19);

display: block;

margin-bottom: govuk-spacing(3);

color: $govuk-secondary-text-colour;
Expand Down

0 comments on commit 0ce4cfc

Please sign in to comment.