Skip to content

Commit

Permalink
Update default link underline offset setting
Browse files Browse the repository at this point in the history
  • Loading branch information
querkmachine committed Mar 30, 2023
1 parent 3440e19 commit 62275b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ The [Button](https://design-system.service.gov.uk/components/button/) Nunjucks m

This was added in [pull request #3344: Adding optional id attribute to button component](https://github.com/alphagov/govuk-frontend/pull/3344). Thanks to [Tom Billington](https://github.com/TomBillingtonUK) for this contribution.

### Added a modifier for text input styles that accept sequences of digits
#### Added a modifier for text input styles that accept sequences of digits

We've added a new `.govuk-input--extra-letter-spacing` class for [Text Input](https://design-system.service.gov.uk/components/text-input/). This increases readability of text inputs that receive sequences of digits (like security codes, references or phone numbers).

Expand Down Expand Up @@ -96,6 +96,7 @@ We’ve made fixes to GOV.UK Frontend in the following pull requests:
- [#3306: Re-enable complete hover link styles on the footer](https://github.com/alphagov/govuk-frontend/pull/3306)
- [#3312: Add default value for warning text icon fallback attribute](https://github.com/alphagov/govuk-frontend/pull/3312)
- [#3426: Add organisation brand colour for Department for Business & Trade](https://github.com/alphagov/govuk-frontend/pull/3426) - thanks to [Barbara Slawinska](https://github.com/baisa) for contributing this change
- [#3454: Update default link underline offset setting](https://github.com/alphagov/govuk-frontend/pull/3454)

## 4.5.0 (Feature release)

Expand Down
6 changes: 5 additions & 1 deletion src/govuk/settings/_links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@ $govuk-link-underline-thickness: unquote("max(1px, .0625rem)") !default;

/// Offset of link underlines from text baseline
///
/// The default is 3px of the 19px default body font size (on desktop),
/// expressed as ems.
/// 3 ÷ 19 = 0.1578
///
/// Set this variable to `false` to avoid setting an offset.
///
/// @type Number
/// @access public

$govuk-link-underline-offset: .1em !default;
$govuk-link-underline-offset: .1578em !default;

/// Thickness of link underlines in hover state
///
Expand Down

0 comments on commit 62275b6

Please sign in to comment.