Skip to content

Commit dfc6415

Browse files
Remove internal use of govuk-typography-responsive
1 parent c39aea4 commit dfc6415

File tree

12 files changed

+28
-28
lines changed

12 files changed

+28
-28
lines changed

packages/components/back-link/_back-link.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
text-decoration: none;
2929

3030
@include nhsuk-link-style-default;
31-
@include nhsuk-typography-responsive(16);
31+
@include nhsuk-font-size(16);
3232

3333
.nhsuk-icon__chevron-left {
3434
height: 24px;

packages/components/details/_details.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
.nhsuk-details {
1818
display: block;
1919
@include nhsuk-text-color;
20-
@include nhsuk-typography-responsive(19);
20+
@include nhsuk-font-size(19);
2121
@include nhsuk-responsive-margin(4, "bottom");
2222
}
2323

packages/components/images/_images.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@
4242
.nhsuk-image__caption {
4343
padding: nhsuk-spacing(3);
4444

45-
@include nhsuk-typography-responsive(16);
45+
@include nhsuk-font-size(16);
4646
}

packages/components/label/_label.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,22 @@
2121
}
2222

2323
.nhsuk-label--xl {
24-
@include nhsuk-typography-responsive(48);
24+
@include nhsuk-font-size(48);
2525
}
2626

2727
.nhsuk-label--l {
28-
@include nhsuk-typography-responsive(36);
28+
@include nhsuk-font-size(36);
2929
}
3030

3131
.nhsuk-label--m {
32-
@include nhsuk-typography-responsive(26);
32+
@include nhsuk-font-size(26);
3333
}
3434

3535
.nhsuk-label--s {
3636
font-weight: $nhsuk-font-bold;
3737
margin-top: 0;
3838

39-
@include nhsuk-typography-responsive(19);
39+
@include nhsuk-font-size(19);
4040
}
4141

4242
// When the label is nested inside a heading, override the heading so that it

packages/components/pagination/_pagination.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
.nhsuk-pagination__title {
117117
display: block;
118118

119-
@include nhsuk-typography-responsive(24);
119+
@include nhsuk-font-size(24);
120120

121121
@include nhsuk-media-query($media-type: print) {
122122
&::after {
@@ -129,5 +129,5 @@
129129
display: block;
130130
text-decoration: underline;
131131

132-
@include nhsuk-typography-responsive(16);
132+
@include nhsuk-font-size(16);
133133
}

packages/components/panel/_panel.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $nhsuk-border-width-panel: nhsuk-spacing(1);
2727
color: $color_nhsuk-white;
2828
padding: nhsuk-spacing(5) - $nhsuk-border-width-panel; /* [2] */
2929

30-
@include nhsuk-typography-responsive(24);
30+
@include nhsuk-font-size(24);
3131
@include nhsuk-responsive-margin(4, "bottom");
3232

3333
@include nhsuk-media-query($until: tablet) {
@@ -45,7 +45,7 @@ $nhsuk-border-width-panel: nhsuk-spacing(1);
4545
.nhsuk-panel__title {
4646
margin-top: 0;
4747

48-
@include nhsuk-typography-responsive(48);
48+
@include nhsuk-font-size(48);
4949
@include nhsuk-responsive-margin(5, "bottom");
5050
}
5151

packages/components/tables/_tables.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,19 @@
3636
}
3737

3838
.nhsuk-table__caption--xl {
39-
@include nhsuk-typography-responsive(48);
39+
@include nhsuk-font-size(48);
4040
}
4141

4242
.nhsuk-table__caption--l {
43-
@include nhsuk-typography-responsive(36);
43+
@include nhsuk-font-size(36);
4444
}
4545

4646
.nhsuk-table__caption--m {
47-
@include nhsuk-typography-responsive(26);
47+
@include nhsuk-font-size(26);
4848
}
4949

5050
.nhsuk-table__caption--s {
51-
@include nhsuk-typography-responsive(22);
51+
@include nhsuk-font-size(22);
5252
}
5353

5454
// [2]

packages/core/elements/_table.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ td {
3939
text-align: left;
4040
vertical-align: top;
4141

42-
@include nhsuk-typography-responsive(19);
42+
@include nhsuk-font-size(19);
4343
@include nhsuk-responsive-padding(3, "bottom");
4444
@include nhsuk-responsive-padding(4, "right");
4545
@include nhsuk-responsive-padding(3, "top");

packages/core/styles/_lists.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
margin-top: 0;
2222
padding-left: 0;
2323

24-
@include nhsuk-typography-responsive(19);
24+
@include nhsuk-font-size(19);
2525
@include nhsuk-responsive-margin(4, "bottom");
2626

2727
// Add a top margin and remove bottom margin for nested lists

packages/core/styles/_typography.scss

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
font-weight: $nhsuk-font-bold;
2222
margin-top: 0;
2323

24-
@include nhsuk-typography-responsive(48);
24+
@include nhsuk-font-size(48);
2525
@include nhsuk-responsive-margin(7, "bottom");
2626
}
2727

@@ -35,7 +35,7 @@ h1,
3535
font-weight: $nhsuk-font-bold;
3636
margin-top: 0;
3737

38-
@include nhsuk-typography-responsive(36);
38+
@include nhsuk-font-size(36);
3939
@include nhsuk-responsive-margin(4, "bottom");
4040
}
4141

@@ -49,7 +49,7 @@ h2,
4949
font-weight: $nhsuk-font-bold;
5050
margin-top: 0;
5151

52-
@include nhsuk-typography-responsive(26);
52+
@include nhsuk-font-size(26);
5353
@include nhsuk-responsive-margin(4, "bottom");
5454
}
5555

@@ -63,7 +63,7 @@ h3,
6363
font-weight: $nhsuk-font-bold;
6464
margin-top: 0;
6565

66-
@include nhsuk-typography-responsive(22);
66+
@include nhsuk-font-size(22);
6767
@include nhsuk-responsive-margin(4, "bottom");
6868
}
6969

@@ -77,7 +77,7 @@ h4,
7777
font-weight: $nhsuk-font-bold;
7878
margin-top: 0;
7979

80-
@include nhsuk-typography-responsive(19);
80+
@include nhsuk-font-size(19);
8181
@include nhsuk-responsive-margin(4, "bottom");
8282
}
8383

@@ -91,7 +91,7 @@ h5,
9191
font-weight: $nhsuk-font-bold;
9292
margin-top: 0;
9393

94-
@include nhsuk-typography-responsive(19);
94+
@include nhsuk-font-size(19);
9595
@include nhsuk-responsive-margin(4, "bottom");
9696
}
9797

@@ -136,7 +136,7 @@ h6,
136136
display: block;
137137
margin-top: 0;
138138

139-
@include nhsuk-typography-responsive(24);
139+
@include nhsuk-font-size(24);
140140
@include nhsuk-responsive-margin(5, "bottom");
141141
}
142142

@@ -148,7 +148,7 @@ h6,
148148
display: block;
149149
margin-top: 0;
150150

151-
@include nhsuk-typography-responsive(19);
151+
@include nhsuk-font-size(19);
152152
@include nhsuk-responsive-margin(4, "bottom");
153153
}
154154

@@ -162,7 +162,7 @@ p,
162162
display: block;
163163
margin-top: 0;
164164

165-
@include nhsuk-typography-responsive(16);
165+
@include nhsuk-font-size(16);
166166
@include nhsuk-responsive-margin(4, "bottom");
167167
}
168168

packages/core/tools/_mixins.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
position: relative;
226226
top: -16px; // [5]
227227

228-
@include nhsuk-typography-responsive(24);
228+
@include nhsuk-font-size(24);
229229

230230
@include nhsuk-media-query($until: tablet) {
231231
margin-left: -25px;

packages/core/utilities/_typography.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
@each $size in map.keys($nhsuk-typography-scale) {
2020
.nhsuk-u-font-size-#{$size} {
21-
@include nhsuk-typography-responsive($size, $important: true);
21+
@include nhsuk-font-size($size, $important: true);
2222
}
2323
}
2424

0 commit comments

Comments
 (0)