@ons/design-system 57.0.1 → 58.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/components/autosuggest/_autosuggest.scss +16 -16
  2. package/components/breadcrumbs/_breadcrumbs.scss +2 -2
  3. package/components/browser-banner/_browser-banner.scss +5 -5
  4. package/components/button/_button.scss +62 -62
  5. package/components/call-to-action/_call-to-action.scss +1 -1
  6. package/components/checkboxes/_checkbox.scss +16 -16
  7. package/components/collapsible/_collapsible.scss +8 -8
  8. package/components/content-pagination/_content-pagination.scss +1 -1
  9. package/components/cookies-banner/_cookies-banner.scss +3 -3
  10. package/components/document-list/document-list.scss +10 -10
  11. package/components/download-resources/_download-resources.scss +5 -5
  12. package/components/external-link/_external-link.scss +4 -4
  13. package/components/feedback/_feedback.scss +3 -3
  14. package/components/field/_field.scss +1 -1
  15. package/components/find-a-support-centre/_find-a-support-centre.scss +1 -1
  16. package/components/footer/_footer.scss +7 -7
  17. package/components/header/_header.scss +26 -26
  18. package/components/hero/_hero.scss +4 -4
  19. package/components/input/_input-type.scss +5 -5
  20. package/components/input/_input.scss +13 -13
  21. package/components/label/_label.scss +1 -1
  22. package/components/lists/_list.scss +1 -1
  23. package/components/message/_message.scss +3 -3
  24. package/components/message-list/_message-list.scss +1 -1
  25. package/components/modal/_modal.scss +1 -1
  26. package/components/navigation/_macro.njk +1 -1
  27. package/components/navigation/_macro.spec.js +20 -2
  28. package/components/navigation/_navigation.scss +14 -14
  29. package/components/pagination/_pagination.scss +2 -2
  30. package/components/panel/_panel.scss +22 -22
  31. package/components/phase-banner/_phase-banner.scss +3 -3
  32. package/components/promotional-banner/_promo-banner.scss +5 -5
  33. package/components/question/_question.scss +4 -4
  34. package/components/quote/_quote.scss +2 -2
  35. package/components/radios/_radio.scss +6 -4
  36. package/components/related-content/_related-content.scss +2 -2
  37. package/components/relationships/_relationships.scss +2 -2
  38. package/components/section-navigation/_macro.njk +1 -1
  39. package/components/section-navigation/_section-navigation.scss +8 -8
  40. package/components/skip-to-content/_skip.scss +3 -3
  41. package/components/status/_status.scss +5 -5
  42. package/components/summary/_summary.scss +6 -6
  43. package/components/table/_table.scss +18 -18
  44. package/components/table-of-contents/_toc.scss +3 -3
  45. package/components/table-of-contents/toc.dom.js +2 -4
  46. package/components/tabs/_macro.njk +18 -5
  47. package/components/tabs/_macro.spec.js +54 -0
  48. package/components/tabs/_tabs.scss +57 -25
  49. package/components/tabs/tabs.js +35 -12
  50. package/components/tabs/tabs.spec.js +104 -10
  51. package/components/text-indent/_text-indent.scss +1 -1
  52. package/components/timeline/_timeline.scss +2 -2
  53. package/components/upload/_upload.scss +6 -6
  54. package/css/census.css +3 -3
  55. package/css/ids.css +3 -3
  56. package/css/main.css +3 -3
  57. package/css/print.css +1 -1
  58. package/package.json +1 -1
  59. package/scripts/main.es5.js +1 -1
  60. package/scripts/main.js +2 -2
  61. package/scss/base/_global.scss +7 -7
  62. package/scss/base/_typography.scss +2 -2
  63. package/scss/census.scss +1 -1
  64. package/scss/helpers/_functions.scss +0 -8
  65. package/scss/ids.scss +1 -1
  66. package/scss/overrides/hcm.scss +1 -1
  67. package/scss/overrides/rtl.scss +1 -1
  68. package/scss/patternlib.scss +10 -9
  69. package/scss/print.scss +7 -5
  70. package/scss/settings/_census.scss +24 -19
  71. package/scss/settings/_ids.scss +12 -8
  72. package/scss/utilities/_border.scss +1 -1
  73. package/scss/utilities/_colors.scss +1 -10
  74. package/scss/utilities/_grid.scss +3 -3
  75. package/scss/utilities/_typography.scss +1 -1
  76. package/scss/vars/_colors.scss +112 -99
@@ -11,7 +11,7 @@
11
11
  }
12
12
 
13
13
  &__results {
14
- border: 1px solid $color-input-border;
14
+ border: 1px solid var(--ons-color-input-border);
15
15
  border-radius: $input-radius;
16
16
  display: none;
17
17
  margin: 0.5rem 0 0;
@@ -21,18 +21,18 @@
21
21
  }
22
22
 
23
23
  &__group {
24
- color: $color-text-link;
24
+ color: var(--ons-color-text-link);
25
25
  text-decoration: underline;
26
26
  }
27
27
 
28
28
  &__results-title {
29
- background: $color-grey-15;
30
- border-bottom: 1px solid $color-input-border;
29
+ background: var(--ons-color-grey-15);
30
+ border-bottom: 1px solid var(--ons-color-input-border);
31
31
  padding: 0.25rem 0.5rem;
32
32
  }
33
33
 
34
34
  &__listbox {
35
- background: $color-white;
35
+ background: var(--ons-color-white);
36
36
  list-style: none;
37
37
  margin: 0;
38
38
  padding: 0;
@@ -48,34 +48,34 @@
48
48
  padding: $input-padding-horizontal;
49
49
 
50
50
  &:not(:last-child) {
51
- border-bottom: 1px solid $color-input-border;
51
+ border-bottom: 1px solid var(--ons-color-input-border);
52
52
  }
53
53
 
54
54
  &:not(&--no-results):not(&--more-results):hover,
55
55
  &--focused:not(&--no-results) {
56
- background: $color-text-link-hover;
57
- border-color: $color-text-link-hover;
58
- color: $color-white;
56
+ background: var(--ons-color-text-link-hover);
57
+ border-color: var(--ons-color-text-link-hover);
58
+ color: var(--ons-color-white);
59
59
 
60
60
  .ons-autosuggest-input__group,
61
61
  .ons-autosuggest-input__category {
62
- color: $color-white;
62
+ color: var(--ons-color-white);
63
63
  }
64
64
  }
65
65
 
66
66
  &:active:not(&--no-results):not(&--more-results) {
67
- background: $color-focus;
68
- color: $color-text-link-focus;
67
+ background: var(--ons-color-focus);
68
+ color: var(--ons-color-text-link-focus);
69
69
 
70
70
  .ons-autosuggest-input__group,
71
71
  .ons-autosuggest-input__category {
72
- color: $color-text-link-focus;
72
+ color: var(--ons-color-text-link-focus);
73
73
  }
74
74
  }
75
75
 
76
76
  &--no-results,
77
77
  &--more-results {
78
- background: $color-grey-15;
78
+ background: var(--ons-color-grey-15);
79
79
  cursor: not-allowed;
80
80
  padding: 0.25rem 0.5rem;
81
81
  }
@@ -87,7 +87,7 @@
87
87
  padding-left: 0.5rem;
88
88
 
89
89
  &:not(:last-child) {
90
- border-bottom: 1px solid $color-input-border;
90
+ border-bottom: 1px solid var(--ons-color-input-border);
91
91
  }
92
92
  }
93
93
 
@@ -128,7 +128,7 @@
128
128
  &--header {
129
129
  .ons-autosuggest-input__results {
130
130
  border: none;
131
- box-shadow: 0 0 5px 0 rgba($color-black, 0.6);
131
+ box-shadow: 0 0 5px 0 rgba(var(--ons-color-black), 0.6);
132
132
  left: 0;
133
133
  position: absolute;
134
134
  z-index: 10;
@@ -74,11 +74,11 @@ $breadcrumb-chevron-height: 0.65rem;
74
74
  }
75
75
 
76
76
  &__link {
77
- color: $color-text;
77
+ color: var(--ons-color-text);
78
78
  text-decoration: underline;
79
79
 
80
80
  &:hover {
81
- color: $color-text;
81
+ color: var(--ons-color-text);
82
82
  }
83
83
  }
84
84
  }
@@ -1,12 +1,12 @@
1
1
  .ons-browser-banner {
2
- background-color: $color-banner-browser-bg;
2
+ background-color: var(--ons-color-banner-browser-bg);
3
3
  display: none; // Hides unsupported browser banner unless targeted below
4
4
  padding: 0.8rem 0;
5
5
 
6
6
  &__content {
7
7
  @extend .ons-u-fs-s;
8
8
 
9
- color: $color-text-inverse;
9
+ color: var(--ons-color-text-inverse);
10
10
  margin: 0;
11
11
  }
12
12
 
@@ -15,11 +15,11 @@
15
15
  }
16
16
 
17
17
  &__link {
18
- color: $color-text-inverse-link;
18
+ color: var(--ons-color-text-inverse-link);
19
19
 
20
20
  &:hover {
21
- color: $color-text-inverse-link-hover;
22
- text-decoration: underline solid $color-text-inverse-link-hover 2px;
21
+ color: var(--ons-color-text-inverse-link-hover);
22
+ text-decoration: underline solid var(--ons-color-text-inverse-link-hover) 2px;
23
23
  }
24
24
  }
25
25
  }
@@ -39,10 +39,10 @@ $button-shadow-size: 3px;
39
39
  }
40
40
 
41
41
  &__inner {
42
- background: $color-button;
42
+ background: var(--ons-color-button);
43
43
  border-radius: $input-radius;
44
- box-shadow: 0 ems($button-shadow-size) 0 darken($color-button, 15%);
45
- color: $color-text-inverse;
44
+ box-shadow: 0 ems($button-shadow-size) 0 var(--ons-color-button-shadow);
45
+ color: var(--ons-color-text-inverse);
46
46
  display: inherit;
47
47
  padding: 0.7em 1em 0.8em;
48
48
  // Required for Google Tag Manager
@@ -50,7 +50,7 @@ $button-shadow-size: 3px;
50
50
  position: relative;
51
51
 
52
52
  .ons-svg-icon {
53
- fill: $color-text-inverse;
53
+ fill: var(--ons-color-text-inverse);
54
54
  height: 18px;
55
55
  margin-top: -$button-shadow-size;
56
56
  vertical-align: middle;
@@ -72,29 +72,29 @@ $button-shadow-size: 3px;
72
72
  }
73
73
 
74
74
  &:focus &__inner {
75
- background: $color-focus;
76
- box-shadow: 0 ems($button-shadow-size) 0 $color-text-link-focus;
77
- color: $color-text-link-focus;
75
+ background: var(--ons-color-focus);
76
+ box-shadow: 0 ems($button-shadow-size) 0 var(--ons-color-text-link-focus);
77
+ color: var(--ons-color-text-link-focus);
78
78
 
79
79
  .ons-svg-icon {
80
- fill: $color-text-link-focus;
80
+ fill: var(--ons-color-text-link-focus);
81
81
  }
82
82
  }
83
83
 
84
84
  &:focus:hover:not(:active) &__inner {
85
- background: darken($color-focus, 5%);
85
+ background: var(--ons-color-focus-dark);
86
86
  }
87
87
 
88
88
  // When down
89
89
  &:active &,
90
90
  &:active:focus & {
91
91
  &__inner {
92
- background: $color-button;
92
+ background: var(--ons-color-button);
93
93
  box-shadow: none;
94
- color: $color-text-inverse;
94
+ color: var(--ons-color-text-inverse);
95
95
 
96
96
  .ons-svg-icon {
97
- fill: $color-text-inverse;
97
+ fill: var(--ons-color-text-inverse);
98
98
  }
99
99
  }
100
100
  }
@@ -129,7 +129,7 @@ $button-shadow-size: 3px;
129
129
  // Secondary button style
130
130
  &--secondary & {
131
131
  &__inner {
132
- box-shadow: 0 ems($button-shadow-size) 0 darken($color-button-secondary, 50%);
132
+ box-shadow: 0 ems($button-shadow-size) 0 var(--ons-color-button-secondary-shadow);
133
133
  }
134
134
  }
135
135
 
@@ -137,12 +137,12 @@ $button-shadow-size: 3px;
137
137
  &--secondary:active &,
138
138
  &--secondary:active:focus & {
139
139
  &__inner {
140
- background: $color-button-secondary;
141
- color: $color-text;
140
+ background: var(--ons-color-button-secondary);
141
+ color: var(--ons-color-text);
142
142
  font-weight: normal;
143
143
 
144
144
  .ons-svg-icon {
145
- fill: $color-text;
145
+ fill: var(--ons-color-text);
146
146
  }
147
147
  }
148
148
  }
@@ -150,13 +150,13 @@ $button-shadow-size: 3px;
150
150
  // When hovered
151
151
  &:hover & {
152
152
  &__inner {
153
- background: darken($color-button, 5%);
153
+ background: var(--ons-color-button-hover);
154
154
  }
155
155
  }
156
156
 
157
157
  &--secondary:hover & {
158
158
  &__inner {
159
- background: darken($color-button-secondary, 5%);
159
+ background: var(--ons-color-button-secondary-hover);
160
160
  }
161
161
  }
162
162
 
@@ -171,7 +171,7 @@ $button-shadow-size: 3px;
171
171
 
172
172
  &__inner {
173
173
  .ons-svg-icon {
174
- fill: $color-text;
174
+ fill: var(--ons-color-text);
175
175
  }
176
176
  }
177
177
  }
@@ -186,20 +186,20 @@ $button-shadow-size: 3px;
186
186
  border: none;
187
187
  border-radius: 0;
188
188
  box-shadow: none;
189
- color: $color-text-link;
189
+ color: var(--ons-color-text-link);
190
190
  font-weight: normal;
191
191
  padding: 0;
192
192
  .ons-svg-icon {
193
- fill: $color-text-link;
193
+ fill: var(--ons-color-text-link);
194
194
  }
195
195
  }
196
196
  }
197
197
 
198
198
  &--text-link-inverse & {
199
199
  &__inner {
200
- color: $color-text-inverse-link;
200
+ color: var(--ons-color-text-inverse-link);
201
201
  .ons-svg-icon {
202
- fill: $color-text-inverse-link;
202
+ fill: var(--ons-color-text-inverse-link);
203
203
  }
204
204
  }
205
205
  }
@@ -209,9 +209,9 @@ $button-shadow-size: 3px;
209
209
  &--text-link.active & {
210
210
  &__inner {
211
211
  background: none;
212
- color: $color-text-link-hover;
212
+ color: var(--ons-color-text-link-hover);
213
213
  .ons-svg-icon {
214
- fill: $color-text-link-hover;
214
+ fill: var(--ons-color-text-link-hover);
215
215
  }
216
216
  }
217
217
  }
@@ -220,16 +220,16 @@ $button-shadow-size: 3px;
220
220
  &--text-link-inverse:active &,
221
221
  &--text-link-inverse.active & {
222
222
  &__inner {
223
- color: $color-text-inverse-link-hover;
223
+ color: var(--ons-color-text-inverse-link-hover);
224
224
  .ons-svg-icon {
225
- fill: $color-text-inverse-link-hover;
225
+ fill: var(--ons-color-text-inverse-link-hover);
226
226
  }
227
227
  }
228
228
  }
229
229
 
230
230
  &--text-link:focus:hover & {
231
231
  &__inner {
232
- color: $color-black;
232
+ color: var(--ons-color-black);
233
233
  }
234
234
  }
235
235
 
@@ -237,11 +237,11 @@ $button-shadow-size: 3px;
237
237
  &--text-link.active:focus &,
238
238
  &--text-link:active:focus & {
239
239
  &__inner {
240
- background-color: $color-focus;
241
- box-shadow: 0 -2px $color-focus, 0 4px $color-text-link-focus !important;
242
- color: $color-text-link-focus;
240
+ background-color: var(--ons-color-focus);
241
+ box-shadow: 0 -2px var(--ons-color-focus), 0 4px var(--ons-color-text-link-focus) !important;
242
+ color: var(--ons-color-text-link-focus);
243
243
  .ons-svg-icon {
244
- fill: $color-text-link-focus;
244
+ fill: var(--ons-color-text-link-focus);
245
245
  }
246
246
  }
247
247
  }
@@ -251,9 +251,9 @@ $button-shadow-size: 3px;
251
251
  background: transparent;
252
252
  border: 2px solid rgba(255, 255, 255, 0.6);
253
253
  box-shadow: none;
254
- color: $color-text-inverse;
254
+ color: var(--ons-color-text-inverse);
255
255
  .ons-svg-icon {
256
- fill: $color-text-inverse;
256
+ fill: var(--ons-color-text-inverse);
257
257
  }
258
258
  }
259
259
  }
@@ -261,11 +261,11 @@ $button-shadow-size: 3px;
261
261
  &--ghost-dark & {
262
262
  &__inner {
263
263
  background: transparent;
264
- border: 2px solid $color-black;
264
+ border: 2px solid var(--ons-color-black);
265
265
  box-shadow: none;
266
- color: $color-text;
266
+ color: var(--ons-color-text);
267
267
  .ons-svg-icon {
268
- fill: $color-text;
268
+ fill: var(--ons-color-text);
269
269
  }
270
270
  }
271
271
  }
@@ -296,9 +296,9 @@ $button-shadow-size: 3px;
296
296
  &--ghost-dark:focus:hover &,
297
297
  &--dropdown:focus:hover & {
298
298
  &__inner {
299
- color: $color-text;
299
+ color: var(--ons-color-text);
300
300
  .ons-svg-icon {
301
- fill: $color-text;
301
+ fill: var(--ons-color-text);
302
302
  }
303
303
  }
304
304
  }
@@ -306,7 +306,7 @@ $button-shadow-size: 3px;
306
306
  &--ghost:hover & {
307
307
  &__inner {
308
308
  background: rgba(0, 0, 0, 0.1);
309
- border-color: $color-white;
309
+ border-color: var(--ons-color-white);
310
310
  }
311
311
  }
312
312
 
@@ -316,9 +316,9 @@ $button-shadow-size: 3px;
316
316
  &__inner {
317
317
  background: rgba(0, 0, 0, 0.2);
318
318
  border-color: rgba(255, 255, 255, 0.6);
319
- color: $color-text-inverse;
319
+ color: var(--ons-color-text-inverse);
320
320
  .ons-svg-icon {
321
- fill: $color-text-inverse;
321
+ fill: var(--ons-color-text-inverse);
322
322
  }
323
323
  }
324
324
  }
@@ -328,11 +328,11 @@ $button-shadow-size: 3px;
328
328
  &--ghost-dark:active:focus &,
329
329
  &--ghost-dark.active & {
330
330
  &__inner {
331
- background: $color-black;
332
- border-color: $color-black;
333
- color: $color-white;
331
+ background: var(--ons-color-black);
332
+ border-color: var(--ons-color-black);
333
+ color: var(--ons-color-white);
334
334
  .ons-svg-icon {
335
- fill: $color-white;
335
+ fill: var(--ons-color-white);
336
336
  }
337
337
  }
338
338
  }
@@ -341,10 +341,10 @@ $button-shadow-size: 3px;
341
341
  &--ghost-dark.active:focus &,
342
342
  &--dropdown.active:focus & {
343
343
  &__inner {
344
- background: $color-focus;
345
- color: $color-text-link-focus;
344
+ background: var(--ons-color-focus);
345
+ color: var(--ons-color-text-link-focus);
346
346
  .ons-svg-icon {
347
- fill: $color-text-link-focus;
347
+ fill: var(--ons-color-text-link-focus);
348
348
  }
349
349
  }
350
350
  }
@@ -353,10 +353,10 @@ $button-shadow-size: 3px;
353
353
  &--ghost-dark:focus &,
354
354
  &--dropdown:focus & {
355
355
  &__inner {
356
- border-color: $color-text-link-focus;
357
- box-shadow: 0 0 0 1px $color-text-link-focus;
356
+ border-color: var(--ons-color-text-link-focus);
357
+ box-shadow: 0 0 0 1px var(--ons-color-text-link-focus);
358
358
  .ons-svg-icon {
359
- fill: $color-black;
359
+ fill: var(--ons-color-black);
360
360
  }
361
361
  }
362
362
  }
@@ -394,7 +394,7 @@ $button-shadow-size: 3px;
394
394
 
395
395
  &--dropdown:focus & {
396
396
  &__inner {
397
- box-shadow: inset 0 -4px 0 0 $color-text-link-focus;
397
+ box-shadow: inset 0 -4px 0 0 var(--ons-color-text-link-focus);
398
398
  }
399
399
  }
400
400
 
@@ -438,11 +438,11 @@ $button-shadow-size: 3px;
438
438
  width: 100%;
439
439
 
440
440
  &__inner {
441
- background: $color-branded-tint;
441
+ background: var(--ons-color-branded-tint);
442
442
  border: none;
443
443
  border-radius: 0;
444
444
  box-shadow: none;
445
- color: $color-branded-text;
445
+ color: var(--ons-color-branded-text);
446
446
  display: block;
447
447
  font-size: 1rem;
448
448
  font-weight: normal;
@@ -450,7 +450,7 @@ $button-shadow-size: 3px;
450
450
  text-align: left;
451
451
 
452
452
  .ons-svg-icon {
453
- fill: $color-branded-text;
453
+ fill: var(--ons-color-branded-text);
454
454
  float: right;
455
455
  margin-top: 3px;
456
456
  }
@@ -459,10 +459,10 @@ $button-shadow-size: 3px;
459
459
 
460
460
  &--dropdown:hover & {
461
461
  &__inner {
462
- background: $color-branded-secondary;
463
- color: $color-white;
462
+ background: var(--ons-color-branded-secondary);
463
+ color: var(--ons-color-white);
464
464
  .ons-svg-icon {
465
- fill: $color-white;
465
+ fill: var(--ons-color-white);
466
466
  }
467
467
  }
468
468
  }
@@ -470,10 +470,10 @@ $button-shadow-size: 3px;
470
470
  &--dropdown:active &,
471
471
  &--dropdown:active:focus & {
472
472
  &__inner {
473
- background: $color-branded-secondary;
474
- color: $color-white;
473
+ background: var(--ons-color-branded-secondary);
474
+ color: var(--ons-color-white);
475
475
  .ons-svg-icon {
476
- fill: $color-white;
476
+ fill: var(--ons-color-white);
477
477
  }
478
478
  }
479
479
  }
@@ -1,5 +1,5 @@
1
1
  .ons-call-to-action {
2
- background: $color-cta-bg;
2
+ background: var(--ons-color-cta-bg);
3
3
  padding: 0.85rem 0;
4
4
 
5
5
  &__heading {
@@ -9,8 +9,8 @@ $checkbox-padding: 11px;
9
9
 
10
10
  &__input {
11
11
  appearance: none;
12
- background-color: $color-input-bg;
13
- border: 2px solid $color-input-border;
12
+ background-color: var(--ons-color-input-bg);
13
+ border: 2px solid var(--ons-color-input-border);
14
14
  border-radius: 0.2rem;
15
15
  box-sizing: border-box;
16
16
  cursor: pointer;
@@ -23,9 +23,9 @@ $checkbox-padding: 11px;
23
23
 
24
24
  // Check icon
25
25
  &::after {
26
- border: solid $color-input-border;
26
+ border: solid var(--ons-color-input-border);
27
27
  border-radius: 1px;
28
- border-top-color: $color-input-bg;
28
+ border-top-color: var(--ons-color-input-bg);
29
29
  border-width: 0 0 3px 3px;
30
30
  box-sizing: border-box;
31
31
  content: '';
@@ -48,27 +48,27 @@ $checkbox-padding: 11px;
48
48
  }
49
49
 
50
50
  &:disabled {
51
- border: 2px solid $color-border-disabled;
51
+ border: 2px solid var(--ons-color-border-disabled);
52
52
  cursor: not-allowed;
53
53
  }
54
54
 
55
55
  &:disabled:checked::after {
56
- border-color: $color-border-disabled;
56
+ border-color: var(--ons-color-border-disabled);
57
57
  }
58
58
 
59
59
  &:disabled + .ons-checkbox__label,
60
60
  &:disabled:checked + .ons-checkbox__label {
61
- color: $color-border-disabled;
61
+ color: var(--ons-color-border-disabled);
62
62
  cursor: not-allowed;
63
63
 
64
64
  &::before {
65
- border: 1px solid $color-border-disabled;
65
+ border: 1px solid var(--ons-color-border-disabled);
66
66
  }
67
67
  }
68
68
 
69
69
  &:disabled:checked + .ons-checkbox__label {
70
70
  &::before {
71
- box-shadow: 0 0 0 1px $color-border-disabled;
71
+ box-shadow: 0 0 0 1px var(--ons-color-border-disabled);
72
72
  }
73
73
  }
74
74
  }
@@ -153,8 +153,8 @@ $checkbox-padding: 11px;
153
153
  }
154
154
 
155
155
  &::before {
156
- background: $color-white;
157
- border: 1px solid $color-input-border;
156
+ background: var(--ons-color-white);
157
+ border: 1px solid var(--ons-color-input-border);
158
158
  border-radius: 3px;
159
159
  bottom: 0;
160
160
  content: '';
@@ -176,21 +176,21 @@ $checkbox-padding: 11px;
176
176
  }
177
177
 
178
178
  &__other {
179
- border-left: 4px solid $color-borders-indent;
179
+ border-left: 4px solid var(--ons-color-borders-indent);
180
180
  display: block;
181
181
  margin: 0 1rem 0.5rem 1.1rem;
182
182
  padding: 0 $checkbox-padding $checkbox-padding $checkbox-padding * 2 - 1;
183
183
  }
184
184
 
185
185
  &__input:checked + &__label::before {
186
- background: $color-grey-5;
187
- box-shadow: 0 0 0 1px $color-input-border;
186
+ background: var(--ons-color-grey-5);
187
+ box-shadow: 0 0 0 1px var(--ons-color-input-border);
188
188
  outline: 1px solid transparent; // Add transparent outline because Windows High Contrast Mode doesn't show box-shadows
189
189
  }
190
190
 
191
191
  .ons-panel--error .ons-radio__input:checked ~ &__other > .ons-input--text:required:not(:focus) {
192
- border: 1px solid $color-ruby-red;
193
- outline: 1px solid $color-ruby-red;
192
+ border: 1px solid var(--ons-color-ruby-red);
193
+ outline: 1px solid var(--ons-color-ruby-red);
194
194
  outline-offset: -2px;
195
195
  }
196
196
 
@@ -2,7 +2,7 @@ $collapsible-caret-width: 1.5rem;
2
2
 
3
3
  .ons-collapsible {
4
4
  &__heading {
5
- color: $color-text-link;
5
+ color: var(--ons-color-text-link);
6
6
  cursor: pointer;
7
7
  display: inline-block;
8
8
  outline: none;
@@ -23,24 +23,24 @@ $collapsible-caret-width: 1.5rem;
23
23
  padding-left: $collapsible-caret-width;
24
24
  }
25
25
  .ons-collapsible__icon .ons-svg-icon {
26
- fill: $color-text-link-focus;
26
+ fill: var(--ons-color-text-link-focus);
27
27
  }
28
28
  }
29
29
 
30
30
  &:hover:not(:focus) {
31
- color: $color-text-link-hover;
31
+ color: var(--ons-color-text-link-hover);
32
32
  .ons-collapsible__icon {
33
- fill: $color-text-link-hover;
33
+ fill: var(--ons-color-text-link-hover);
34
34
  }
35
35
  .ons-collapsible__title {
36
- text-decoration: underline solid $color-text-link-hover 2px;
36
+ text-decoration: underline solid var(--ons-color-text-link-hover) 2px;
37
37
  }
38
38
  }
39
39
  }
40
40
 
41
41
  &__icon {
42
42
  display: inline-block;
43
- fill: $color-text-link;
43
+ fill: var(--ons-color-text-link);
44
44
  height: $collapsible-caret-width;
45
45
  left: -0.15rem;
46
46
  position: absolute;
@@ -58,7 +58,7 @@ $collapsible-caret-width: 1.5rem;
58
58
  }
59
59
 
60
60
  &__content {
61
- border-left: 4px solid $color-borders-indent;
61
+ border-left: 4px solid var(--ons-color-borders-indent);
62
62
  display: block;
63
63
  margin: 1rem 0 0;
64
64
  padding: 0 0 0 1.3em;
@@ -74,7 +74,7 @@ $collapsible-caret-width: 1.5rem;
74
74
 
75
75
  &--accordion & {
76
76
  &__heading {
77
- border-top: 1px solid $color-borders;
77
+ border-top: 1px solid var(--ons-color-borders);
78
78
  margin: 0;
79
79
  padding-bottom: 0.9rem;
80
80
  padding-top: 1rem;
@@ -19,7 +19,7 @@
19
19
  &:hover {
20
20
  text-decoration: none;
21
21
  .ons-content-pagination__link-label {
22
- text-decoration: underline solid $color-text-link-hover 2px;
22
+ text-decoration: underline solid var(--ons-color-text-link-hover) 2px;
23
23
  }
24
24
  }
25
25
 
@@ -1,14 +1,14 @@
1
1
  .ons-cookies-banner {
2
- background: $color-banner-bg;
2
+ background: var(--ons-color-banner-bg);
3
3
  display: none;
4
4
  padding: 1rem 0 1.5rem;
5
5
 
6
6
  &__title {
7
- color: $color-text;
7
+ color: var(--ons-color-text);
8
8
  }
9
9
 
10
10
  &__statement {
11
- color: $color-text;
11
+ color: var(--ons-color-text);
12
12
  word-break: break-word;
13
13
  p {
14
14
  margin: 0 0 0.5rem;