Skip to content

Commit 2d0248d

Browse files
Fix deprecations (#336)
This updates the deprecations in NHS 9.5.0 to use the new names, see https://github.com/nhsuk/nhsuk-frontend/releases/tag/v9.5.0
1 parent a0f9e67 commit 2d0248d

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

app/assets/sass/components/_button-group.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
width: 100%;
2222
}
2323

24-
@include mq($from: tablet) {
24+
@include nhsuk-media-query($from: tablet) {
2525
flex-direction: row;
2626
flex-wrap: wrap;
2727

app/assets/sass/components/_button.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// so that when it sits to the right of a text input
55
// (eg a search box) it is the same height.
66
.app-button--small {
7-
@include nhsuk-typography-responsive(16);
7+
@include nhsuk-font-size(16);
88
padding: nhsuk-spacing(2) 12px;
99
}
1010

app/assets/sass/components/_feedback-panel.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
}
99

1010
.app-feedback-panel__title {
11-
@include nhsuk-typography-responsive(22);
11+
@include nhsuk-font-size(22);
1212
}

app/assets/sass/components/_related-nav.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
.nhsuk-related-nav {
66
border-top: 1px solid $nhsuk-border-color;
77

8-
@include mq($until: desktop) {
8+
@include nhsuk-media-query($until: desktop) {
99
margin-top: nhsuk-spacing(7);
1010
}
1111
}
1212

1313
.nhsuk-related-nav__heading {
14-
@include nhsuk-typography-responsive(19, $override-line-height: 1.2);
14+
@include nhsuk-font-size(19, $line-height: 1.2);
1515

1616
margin-bottom: 12px;
1717
padding-top: nhsuk-spacing(3);
1818
}
1919

2020
.nhsuk-related-nav__list {
21-
@include nhsuk-typography-responsive(16);
21+
@include nhsuk-font-size(16);
2222

2323
list-style: none;
2424
padding-left: 0;

app/assets/sass/components/_table.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ table {
1313

1414
.app-table__header--min-width-200 {
1515
min-width: 100px;
16-
@include mq($from: desktop) {
16+
@include nhsuk-media-query($from: desktop) {
1717
min-width: 200px;
1818
}
1919
}

app/components/pagination/_pagination.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@
5353
text-decoration: none;
5454
width: 100%;
5555

56-
@include mq($media-type: print) {
56+
@include nhsuk-media-query($media-type: print) {
5757
color: $color_nhsuk-black;
5858
}
5959

6060
.nhsuk-icon {
6161
position: absolute;
6262
top: -2px;
6363

64-
@include mq($media-type: print) {
64+
@include nhsuk-media-query($media-type: print) {
6565
color: $color_nhsuk-black;
6666
margin-top: 0;
6767
}
@@ -115,19 +115,19 @@
115115
}
116116

117117
.nhsuk-pagination__title {
118-
@include nhsuk-typography-responsive(24);
118+
@include nhsuk-font-size(26);
119119

120120
display: block;
121121

122-
@include mq($media-type: print) {
122+
@include nhsuk-media-query($media-type: print) {
123123
&:after {
124124
content: " page"; /* [2] */
125125
}
126126
}
127127
}
128128

129129
.nhsuk-pagination__page {
130-
@include nhsuk-typography-responsive(16);
130+
@include nhsuk-font-size(16);
131131

132132
display: block;
133133
text-decoration: underline;

0 commit comments

Comments
 (0)