Skip to content

Commit

Permalink
Add extra letter spacing modifier for inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
36degrees authored and romaricpascal committed Nov 28, 2022
1 parent 79f64df commit d0b634e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/govuk/components/input/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@
}
}

.govuk-input--extra-letter-spacing {
@include govuk-font(false, $tabular: true);
letter-spacing: .05em;
}

// em measurements are based on the point size of the typeface
// Extra space is added on the right hand side to allow for the Safari prefill icon

Expand Down
7 changes: 7 additions & 0 deletions src/govuk/components/input/input.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,13 @@ examples:
text: £
suffix:
text: per item
- name: with extra letter spacing
data:
id: input-with-extra-letter-spacing
label:
text: National insurance number
classes: govuk-input--width-30 govuk-input--extra-letter-spacing
value: QQ 12 34 56 C

# Hidden examples are not shown in the review app, but are used for tests and HTML fixtures
- name: classes
Expand Down

0 comments on commit d0b634e

Please sign in to comment.