-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change spacing relationship on default and small legends and hints #940
Conversation
} | ||
|
||
.govuk-fieldset__legend--s { | ||
@include govuk-font($size: 19, $weight: bold); | ||
} | ||
|
||
.govuk-fieldset__legend |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guessing this change isn't intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
79efb63
to
85b968e
Compare
this looks good but it needs a changelog entry as well. is this a bug fix or a new feature? |
85b968e
to
2b27754
Compare
src/components/hint/_hint.scss
Outdated
// or govuk-fieldset__legend--s for better vertical alignment. | ||
|
||
// This adjustment will not work when the legend is outside the <h1>, however | ||
// it is unlikely that the default or govuk-fieldset__legend--s class would // be used in this case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment's got a mis-placed //
– it'd be good to wrap these comments correctly at 80 characters.
2b27754
to
c22b0d0
Compare
resolved conflict and comment line length |
src/components/hint/_hint.scss
Outdated
|
||
// This adjustment will not work in browsers that do not support :not() | ||
// Users with these browsers will see the default size margin (5px larger) | ||
// This adjustment will not work in browsers that do not support :not() Users |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a full stop here to keep these sentences from running into each other like this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adjusted
c22b0d0
to
e3ee3bd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
… align with labels
e3ee3bd
to
a75c746
Compare
merged on behalf of @dashouse |
Before the release of GOV.UK Frontend we changed the spacing of labels and hints when using the default or
govuk-label--s
class. (#806)We chose not update the legend and hint, in isolation they looked good.
However when a service uses a small label + hint and a small legend + hint on the same page the inconsistency is noticeable.
Amending the spacing on the
<legend>
is slightly different to the<label>
, there was also a need to only reduce spacing on the<legend>
when a hint was applied, hence the use of an adjacent selector and negative margin.Before
After