@solexllc/usx 0.1.4 → 0.1.6

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 (44) hide show
  1. package/package.json +2 -2
  2. package/src/components/_accordion.scss +1 -3
  3. package/src/components/_alert.scss +14 -42
  4. package/src/components/_attribution.scss +1 -3
  5. package/src/components/_avatar-group.scss +1 -3
  6. package/src/components/_banner.scss +5 -15
  7. package/src/components/_block.scss +1 -3
  8. package/src/components/_branding.scss +2 -6
  9. package/src/components/_breadcrumb.scss +5 -15
  10. package/src/components/_button-group.scss +1 -3
  11. package/src/components/_button.scss +15 -45
  12. package/src/components/_carousel.scss +6 -18
  13. package/src/components/_checkbox.scss +7 -21
  14. package/src/components/_clickable.scss +4 -12
  15. package/src/components/_collection.scss +2 -6
  16. package/src/components/_combobox.scss +7 -19
  17. package/src/components/_file-input.scss +15 -43
  18. package/src/components/_footer.scss +23 -69
  19. package/src/components/_form-group.scss +5 -15
  20. package/src/components/_header.scss +43 -101
  21. package/src/components/_hero.scss +94 -54
  22. package/src/components/_icon-list.scss +1 -3
  23. package/src/components/_in-page-nav.scss +9 -27
  24. package/src/components/_input.scss +17 -51
  25. package/src/components/_language-selector.scss +3 -9
  26. package/src/components/_layout.scss +1 -3
  27. package/src/components/_link.scss +7 -21
  28. package/src/components/_misc-banner.scss +1 -3
  29. package/src/components/_modal.scss +4 -12
  30. package/src/components/_page.scss +2 -6
  31. package/src/components/_pagination.scss +13 -37
  32. package/src/components/_process-list.scss +4 -12
  33. package/src/components/_radio-buttons.scss +6 -18
  34. package/src/components/_section.scss +2 -6
  35. package/src/components/_select.scss +17 -51
  36. package/src/components/_sidenav.scss +10 -30
  37. package/src/components/_site-alert.scss +5 -15
  38. package/src/components/_step-indicator.scss +16 -48
  39. package/src/components/_summary-box.scss +5 -15
  40. package/src/components/_table.scss +2 -6
  41. package/src/components/_task-list.scss +6 -18
  42. package/src/components/_text-area.scss +15 -45
  43. package/src/components/_theme-picker.scss +2 -6
  44. package/src/components/_tooltip.scss +1 -3
@@ -16,17 +16,11 @@
16
16
  background-repeat: no-repeat;
17
17
  color: #fff;
18
18
 
19
- @if $usx-hero-min-height {
20
- min-height: $usx-hero-min-height;
21
- }
19
+ min-height: usx-when($usx-hero-min-height);
22
20
 
23
- @if $usx-hero-bg {
24
- background-color: $usx-hero-bg;
25
- }
21
+ background-color: usx-when($usx-hero-bg);
26
22
 
27
- @if $usx-hero-text {
28
- color: $usx-hero-text;
29
- }
23
+ color: usx-when($usx-hero-text);
30
24
 
31
25
  &--has-overlay::before {
32
26
  content: '';
@@ -35,9 +29,7 @@
35
29
  background-color: rgb(0 0 0 / 35%);
36
30
  pointer-events: none;
37
31
 
38
- @if $usx-hero-overlay-bg {
39
- background-color: $usx-hero-overlay-bg;
40
- }
32
+ background-color: usx-when($usx-hero-overlay-bg);
41
33
  }
42
34
 
43
35
  &__inner {
@@ -49,16 +41,18 @@
49
41
  padding-block: 4rem;
50
42
  padding-inline: 1.5rem;
51
43
 
52
- @if $usx-hero-padding-block {
53
- padding-block: $usx-hero-padding-block;
54
- }
44
+ padding-block: usx-when($usx-hero-padding-block);
55
45
 
56
- @if $usx-hero-padding-inline {
57
- padding-inline: $usx-hero-padding-inline;
58
- }
46
+ padding-inline: usx-when($usx-hero-padding-inline);
47
+ }
48
+
49
+ &--has-overlay.usx-hero--custom-overlay::before {
50
+ background-color: rgb(0 0 0 / clamp(0, var(--hero-overlay-opacity), 1));
59
51
  }
60
52
 
61
53
  &__callout {
54
+ min-width: 0;
55
+ overflow-wrap: anywhere;
62
56
  max-width: 40rem;
63
57
  padding: 2rem;
64
58
  background-color: rgb(0 0 0 / 90%);
@@ -67,16 +61,82 @@
67
61
  // like every other radius-box consumer: image, code, summary-box).
68
62
  border-radius: $usx-hero-callout-radius;
69
63
 
70
- @if $usx-hero-callout-max-width {
71
- max-width: $usx-hero-callout-max-width;
64
+ max-width: usx-when($usx-hero-callout-max-width);
65
+
66
+ padding: usx-when($usx-hero-callout-padding);
67
+
68
+ background-color: usx-when($usx-hero-callout-bg);
69
+ }
70
+
71
+ &--content-right &__callout {
72
+ margin-left: auto;
73
+ }
74
+
75
+ &--content-center &__callout {
76
+ margin-inline: auto;
77
+ text-align: center;
78
+ }
79
+
80
+ &--unboxed &__callout {
81
+ padding: 0;
82
+ background: transparent;
83
+ border-radius: 0;
84
+ }
85
+
86
+ &__secondary {
87
+ min-width: 0;
88
+ margin-top: 2rem;
89
+ overflow-wrap: anywhere;
90
+ }
91
+
92
+ &__secondary-heading {
93
+ margin: 0 0 1rem;
94
+ font-family: $usx-font-family-heading;
95
+ font-size: 1.5rem;
96
+ line-height: 1.3;
97
+ color: inherit;
98
+ }
99
+
100
+ &__secondary-link {
101
+ color: inherit;
102
+ text-decoration: underline;
103
+ text-underline-offset: 0.2em;
104
+ }
105
+
106
+ &--content-center &__secondary {
107
+ max-width: 40rem;
108
+ margin-inline: auto;
109
+ text-align: center;
110
+ }
111
+
112
+ @media (width >= 64em) {
113
+ &--split:not(.usx-hero--content-center) &__inner {
114
+ display: grid;
115
+ grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
116
+ align-items: center;
117
+ gap: 3rem;
72
118
  }
73
119
 
74
- @if $usx-hero-callout-padding {
75
- padding: $usx-hero-callout-padding;
120
+ &--split &__callout {
121
+ width: 100%;
76
122
  }
77
123
 
78
- @if $usx-hero-callout-bg {
79
- background-color: $usx-hero-callout-bg;
124
+ &--split:not(.usx-hero--content-center) &__secondary {
125
+ margin-top: 0;
126
+ }
127
+
128
+ &--split.usx-hero--content-right &__inner {
129
+ grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
130
+ }
131
+
132
+ &--split.usx-hero--content-right &__callout {
133
+ grid-column: 2;
134
+ grid-row: 1;
135
+ }
136
+
137
+ &--split.usx-hero--content-right &__secondary {
138
+ grid-column: 1;
139
+ grid-row: 1;
80
140
  }
81
141
  }
82
142
 
@@ -89,21 +149,13 @@
89
149
  margin-bottom: 1rem;
90
150
  color: #fff;
91
151
 
92
- @if $usx-hero-heading-size {
93
- font-size: $usx-hero-heading-size;
94
- }
152
+ font-size: usx-when($usx-hero-heading-size);
95
153
 
96
- @if $usx-hero-heading-font-weight {
97
- font-weight: $usx-hero-heading-font-weight;
98
- }
154
+ font-weight: usx-when($usx-hero-heading-font-weight);
99
155
 
100
- @if $usx-spacing-md {
101
- margin-bottom: $usx-spacing-md;
102
- }
156
+ margin-bottom: usx-when($usx-spacing-md);
103
157
 
104
- @if $usx-hero-text {
105
- color: $usx-hero-text;
106
- }
158
+ color: usx-when($usx-hero-text);
107
159
 
108
160
  &--alt {
109
161
  display: block;
@@ -112,17 +164,11 @@
112
164
  margin-bottom: 0.25rem;
113
165
  color: #66b5ee;
114
166
 
115
- @if $usx-hero-alt-size {
116
- font-size: $usx-hero-alt-size;
117
- }
167
+ font-size: usx-when($usx-hero-alt-size);
118
168
 
119
- @if $usx-spacing-xs {
120
- margin-bottom: $usx-spacing-xs;
121
- }
169
+ margin-bottom: usx-when($usx-spacing-xs);
122
170
 
123
- @if $usx-hero-alt-text {
124
- color: $usx-hero-alt-text;
125
- }
171
+ color: usx-when($usx-hero-alt-text);
126
172
  }
127
173
  }
128
174
 
@@ -133,17 +179,11 @@
133
179
  margin-bottom: 1.5rem;
134
180
  color: #fff;
135
181
 
136
- @if $usx-hero-paragraph-size {
137
- font-size: $usx-hero-paragraph-size;
138
- }
182
+ font-size: usx-when($usx-hero-paragraph-size);
139
183
 
140
- @if $usx-spacing-lg {
141
- margin-bottom: $usx-spacing-lg;
142
- }
184
+ margin-bottom: usx-when($usx-spacing-lg);
143
185
 
144
- @if $usx-hero-text {
145
- color: $usx-hero-text;
146
- }
186
+ color: usx-when($usx-hero-text);
147
187
  }
148
188
  }
149
189
  /* stylelint-enable selector-class-pattern */
@@ -12,9 +12,7 @@
12
12
 
13
13
  // Real USWDS only colors the icon via opt-in BEM modifier classes
14
14
  // (.usa-icon-list--primary, etc.) — default it to our theme instead.
15
- @if $usx-icon-list-icon-text {
16
- color: $usx-icon-list-icon-text;
17
- }
15
+ color: usx-when($usx-icon-list-icon-text);
18
16
  }
19
17
 
20
18
  .usa-icon-list__content {
@@ -32,57 +32,39 @@
32
32
  }
33
33
 
34
34
  .usa-in-page-nav__nav {
35
- @if $usx-in-page-nav-bg {
36
- background-color: $usx-in-page-nav-bg;
37
- }
35
+ background-color: usx-when($usx-in-page-nav-bg);
38
36
 
39
- @if $usx-in-page-nav-text {
40
- color: $usx-in-page-nav-text;
41
- }
37
+ color: usx-when($usx-in-page-nav-text);
42
38
  }
43
39
 
44
40
  .usa-in-page-nav__heading {
45
- @if $usx-in-page-nav-text {
46
- color: $usx-in-page-nav-text;
47
- }
41
+ color: usx-when($usx-in-page-nav-text);
48
42
  }
49
43
 
50
44
  .usa-in-page-nav__list {
51
- @if $usx-in-page-nav-border {
52
- border-left-color: $usx-in-page-nav-border;
53
- }
45
+ border-left-color: usx-when($usx-in-page-nav-border);
54
46
 
55
47
  a:not(.usa-button) {
56
48
  &:not(.usa-current) {
57
- @if $usx-in-page-nav-link-text {
58
- color: $usx-in-page-nav-link-text;
59
- }
49
+ color: usx-when($usx-in-page-nav-link-text);
60
50
 
61
51
  &:hover {
62
- @if $usx-in-page-nav-link-text-hover {
63
- color: $usx-in-page-nav-link-text-hover;
64
- }
52
+ color: usx-when($usx-in-page-nav-link-text-hover);
65
53
  }
66
54
 
67
55
  // Matches real USWDS's own compiled selector
68
56
  // (a:not(.usa-button):not(.usa-current):visited) class-for-class so
69
57
  // this wins the cascade instead of losing to it on specificity.
70
58
  &:visited {
71
- @if $usx-in-page-nav-link-text {
72
- color: $usx-in-page-nav-link-text;
73
- }
59
+ color: usx-when($usx-in-page-nav-link-text);
74
60
  }
75
61
  }
76
62
 
77
63
  &.usa-current {
78
- @if $usx-in-page-nav-current-text {
79
- color: $usx-in-page-nav-current-text;
80
- }
64
+ color: usx-when($usx-in-page-nav-current-text);
81
65
 
82
66
  &::after {
83
- @if $usx-in-page-nav-bar {
84
- background-color: $usx-in-page-nav-bar;
85
- }
67
+ background-color: usx-when($usx-in-page-nav-bar);
86
68
  }
87
69
  }
88
70
  }
@@ -11,13 +11,9 @@
11
11
  /* ---------------------------------- */
12
12
 
13
13
  .usa-input.usx-input, .usa-select.usx-select, .usa-combo-box__input {
14
- @if $usx-input-radius {
15
- border-radius: $usx-input-radius;
16
- }
14
+ border-radius: usx-when($usx-input-radius);
17
15
 
18
- @if $usx-input-padding {
19
- padding: $usx-input-padding;
20
- }
16
+ padding: usx-when($usx-input-padding);
21
17
  }
22
18
 
23
19
  /* ---------------------------------- */
@@ -29,42 +25,26 @@
29
25
  .usa-input.usx-input, .usa-select.usx-select {
30
26
  &:not(.usa-input--error):not(.usa-input--success) {
31
27
  &:not(:disabled) {
32
- @if $usx-input-bg {
33
- background-color: $usx-input-bg;
34
- }
28
+ background-color: usx-when($usx-input-bg);
35
29
 
36
- @if $usx-input-text {
37
- color: $usx-input-text;
38
- }
30
+ color: usx-when($usx-input-text);
39
31
 
40
- @if $usx-input-border {
41
- border-color: $usx-input-border;
42
- }
32
+ border-color: usx-when($usx-input-border);
43
33
  }
44
34
  }
45
35
  }
46
36
 
47
37
  .usa-input.usx-input, .usa-select.usx-select {
48
38
  &.usa-input--error {
49
- @if $usx-input-error-border-width {
50
- border-width: $usx-input-error-border-width;
51
- }
39
+ border-width: usx-when($usx-input-error-border-width);
52
40
 
53
- @if $usx-input-error-border {
54
- border-color: $usx-input-error-border;
55
- }
41
+ border-color: usx-when($usx-input-error-border);
56
42
 
57
- @if $usx-input-error-border-style {
58
- border-style: $usx-input-error-border-style;
59
- }
43
+ border-style: usx-when($usx-input-error-border-style);
60
44
 
61
- @if $usx-input-error-padding-top {
62
- padding-top: $usx-input-error-padding-top;
63
- }
45
+ padding-top: usx-when($usx-input-error-padding-top);
64
46
 
65
- @if $usx-input-error-padding-bottom {
66
- padding-bottom: $usx-input-error-padding-bottom;
67
- }
47
+ padding-bottom: usx-when($usx-input-error-padding-bottom);
68
48
  }
69
49
  }
70
50
 
@@ -72,25 +52,15 @@
72
52
  // Error can be toggled dynamically (e.g. character-count) on top of a
73
53
  // statically-applied success class, so error must win when both are present.
74
54
  &.usa-input--success:not(.usa-input--error) {
75
- @if $usx-input-success-border-width {
76
- border-width: $usx-input-success-border-width;
77
- }
55
+ border-width: usx-when($usx-input-success-border-width);
78
56
 
79
- @if $usx-input-success-border {
80
- border-color: $usx-input-success-border;
81
- }
57
+ border-color: usx-when($usx-input-success-border);
82
58
 
83
- @if $usx-input-success-border-style {
84
- border-style: $usx-input-success-border-style;
85
- }
59
+ border-style: usx-when($usx-input-success-border-style);
86
60
 
87
- @if $usx-input-success-padding-top {
88
- padding-top: $usx-input-success-padding-top;
89
- }
61
+ padding-top: usx-when($usx-input-success-padding-top);
90
62
 
91
- @if $usx-input-success-padding-bottom {
92
- padding-bottom: $usx-input-success-padding-bottom;
93
- }
63
+ padding-bottom: usx-when($usx-input-success-padding-bottom);
94
64
  }
95
65
  }
96
66
 
@@ -102,13 +72,9 @@
102
72
 
103
73
  .usa-input.usx-input, .usa-select.usx-select, .usa-combo-box__input {
104
74
  &:not([disabled]):focus {
105
- @if $usx-input-focus-outline {
106
- outline: $usx-input-focus-outline;
107
- }
75
+ outline: usx-when($usx-input-focus-outline);
108
76
 
109
- @if $usx-input-focus-outline-offset {
110
- outline-offset: $usx-input-focus-outline-offset;
111
- }
77
+ outline-offset: usx-when($usx-input-focus-outline-offset);
112
78
  }
113
79
  }
114
80
 
@@ -7,19 +7,13 @@
7
7
  // the theme's primary-darker shade instead of a static hex.
8
8
  .usx-language-selector {
9
9
  .usa-language__submenu {
10
- @if $usx-language-selector-menu-bg {
11
- background-color: $usx-language-selector-menu-bg;
12
- }
10
+ background-color: usx-when($usx-language-selector-menu-bg);
13
11
 
14
12
  .usa-language__submenu-item a {
15
- @if $usx-language-selector-menu-text {
16
- color: $usx-language-selector-menu-text;
17
- }
13
+ color: usx-when($usx-language-selector-menu-text);
18
14
 
19
15
  &:hover {
20
- @if $usx-language-selector-menu-text {
21
- color: $usx-language-selector-menu-text;
22
- }
16
+ color: usx-when($usx-language-selector-menu-text);
23
17
  }
24
18
  }
25
19
  }
@@ -4,9 +4,7 @@
4
4
  .usx-layout {
5
5
  min-height: 100vh;
6
6
 
7
- @if $usx-surface-1 {
8
- background-color: $usx-surface-1;
9
- }
7
+ background-color: usx-when($usx-surface-1);
10
8
 
11
9
  // ── Single column layout ──────────────────────────────────────────────────
12
10
  // Centers content with max-width and responsive gutters
@@ -7,36 +7,26 @@
7
7
  width: max-content;
8
8
 
9
9
  &:not([class^="text-"]):not([class*=" text-"]) {
10
- @if $usx-link-text {
11
- color: $usx-link-text;
12
- }
10
+ color: usx-when($usx-link-text);
13
11
 
14
12
  &:hover {
15
- @if $usx-link-text-hover {
16
- color: $usx-link-text-hover;
17
- }
13
+ color: usx-when($usx-link-text-hover);
18
14
  }
19
15
 
20
16
  &:active {
21
- @if $usx-link-text-active {
22
- color: $usx-link-text-active;
23
- }
17
+ color: usx-when($usx-link-text-active);
24
18
  }
25
19
  }
26
20
 
27
21
  &:not(.usx-no-visited) {
28
22
  &:visited,
29
23
  &.usx-link--visited {
30
- @if $usx-link-text-visited {
31
- color: $usx-link-text-visited;
32
- }
24
+ color: usx-when($usx-link-text-visited);
33
25
  }
34
26
  }
35
27
 
36
28
  &:focus {
37
- @if $usx-input-focus-outline {
38
- color: $usx-input-focus-outline;
39
- }
29
+ color: usx-when($usx-input-focus-outline);
40
30
  }
41
31
  }
42
32
 
@@ -45,17 +35,13 @@
45
35
  .usa-dark-background .usx-link,
46
36
  .usa-dark-background .usx-prose a {
47
37
  &:not([class^="text-"]):not([class*=" text-"]) {
48
- @if $usx-link-text-dark {
49
- color: $usx-link-text-dark;
50
- }
38
+ color: usx-when($usx-link-text-dark);
51
39
  }
52
40
 
53
41
  &:not(.usx-no-visited) {
54
42
  &:visited,
55
43
  &.usx-link--visited {
56
- @if $usx-link-text-visited-dark {
57
- color: $usx-link-text-visited-dark;
58
- }
44
+ color: usx-when($usx-link-text-visited-dark);
59
45
  }
60
46
  }
61
47
  }
@@ -77,9 +77,7 @@
77
77
  .usx-misc-banner__dropdown-toggle:focus + .usx-misc-banner__dropdown-button {
78
78
  outline: 0.25rem solid #9bdaf1;
79
79
 
80
- @if $usx-misc-banner-focus {
81
- outline-color: $usx-misc-banner-focus;
82
- }
80
+ outline-color: usx-when($usx-misc-banner-focus);
83
81
  }
84
82
 
85
83
  .usx-misc-banner__dropdown-button {
@@ -2,24 +2,16 @@
2
2
 
3
3
  /* stylelint-disable selector-class-pattern -- Public USX classes use BEM naming. */
4
4
  .usx-modal {
5
- @if $usx-modal-bg {
6
- background: $usx-modal-bg;
7
- }
5
+ background: usx-when($usx-modal-bg);
8
6
 
9
- @if $usx-modal-text {
10
- color: $usx-modal-text;
11
- }
7
+ color: usx-when($usx-modal-text);
12
8
 
13
9
  .usa-modal__close {
14
- @if $usx-modal-close-text {
15
- color: $usx-modal-close-text;
16
- }
10
+ color: usx-when($usx-modal-close-text);
17
11
 
18
12
  &:hover,
19
13
  &:active {
20
- @if $usx-modal-close-text-hover {
21
- color: $usx-modal-close-text-hover;
22
- }
14
+ color: usx-when($usx-modal-close-text-hover);
23
15
  }
24
16
  }
25
17
 
@@ -5,13 +5,9 @@
5
5
  margin-top: 2rem;
6
6
  margin-bottom: 4rem;
7
7
 
8
- @if $usx-page-bg {
9
- background-color: $usx-page-bg;
10
- }
8
+ background-color: usx-when($usx-page-bg);
11
9
 
12
- @if $usx-page-text {
13
- color: $usx-page-text;
14
- }
10
+ color: usx-when($usx-page-text);
15
11
 
16
12
  .usx-page__title {
17
13
  margin-top: 0;
@@ -57,13 +57,9 @@
57
57
 
58
58
  // Real USWDS hardcodes the `.usa-pagination` nav to a static white bg /
59
59
  // #1b1b1b text — floats as an opaque box over a themed page background.
60
- @if $usx-pagination-bg {
61
- background-color: $usx-pagination-bg;
62
- }
60
+ background-color: usx-when($usx-pagination-bg);
63
61
 
64
- @if $usx-pagination-text {
65
- color: $usx-pagination-text;
66
- }
62
+ color: usx-when($usx-pagination-text);
67
63
 
68
64
  .usa-pagination__list {
69
65
  gap: 0.5rem;
@@ -79,39 +75,27 @@
79
75
  // `.usx-pagination` so it doesn't affect unrelated `.usa-current` usages
80
76
  // elsewhere (header nav, in-page-nav, sidenav).
81
77
  .usa-pagination__link {
82
- @if $usx-pagination-link-text {
83
- color: $usx-pagination-link-text;
84
- }
78
+ color: usx-when($usx-pagination-link-text);
85
79
 
86
80
  &:visited {
87
- @if $usx-pagination-link-text {
88
- color: $usx-pagination-link-text;
89
- }
81
+ color: usx-when($usx-pagination-link-text);
90
82
  }
91
83
 
92
84
  &:hover {
93
- @if $usx-pagination-link-text-hover {
94
- color: $usx-pagination-link-text-hover;
95
- }
85
+ color: usx-when($usx-pagination-link-text-hover);
96
86
  }
97
87
  }
98
88
 
99
89
  .usa-pagination__button {
100
- @if $usx-pagination-link-text {
101
- color: $usx-pagination-link-text;
102
- }
90
+ color: usx-when($usx-pagination-link-text);
103
91
 
104
92
  &:not(.usa-current) {
105
- @if $usx-pagination-button-border {
106
- border-color: $usx-pagination-button-border;
107
- }
93
+ border-color: usx-when($usx-pagination-button-border);
108
94
  }
109
95
 
110
96
  &:hover {
111
- @if $usx-pagination-link-text-hover {
112
- color: $usx-pagination-link-text-hover;
113
- border-color: $usx-pagination-link-text-hover;
114
- }
97
+ color: usx-when($usx-pagination-link-text-hover);
98
+ border-color: usx-when($usx-pagination-link-text-hover);
115
99
  }
116
100
 
117
101
  // Real USWDS hardcodes the filled current-page button to a static
@@ -119,24 +103,16 @@
119
103
  // specificity than the plain-link rule above so it wins instead of
120
104
  // inheriting the link color over its own filled background.
121
105
  &.usa-current {
122
- @if $usx-pagination-current-bg {
123
- background-color: $usx-pagination-current-bg;
124
- }
106
+ background-color: usx-when($usx-pagination-current-bg);
125
107
 
126
- @if $usx-pagination-current-text {
127
- color: $usx-pagination-current-text;
128
- }
108
+ color: usx-when($usx-pagination-current-text);
129
109
 
130
110
  &:hover,
131
111
  &:focus,
132
112
  &:active {
133
- @if $usx-pagination-current-bg {
134
- background-color: $usx-pagination-current-bg;
135
- }
113
+ background-color: usx-when($usx-pagination-current-bg);
136
114
 
137
- @if $usx-pagination-current-text {
138
- color: $usx-pagination-current-text;
139
- }
115
+ color: usx-when($usx-pagination-current-text);
140
116
  }
141
117
  }
142
118
  }
@@ -7,24 +7,16 @@
7
7
  // themeable defaults instead.
8
8
  .usx-process-list {
9
9
  .usa-process-list__heading {
10
- @if $usx-process-list-heading-text {
11
- color: $usx-process-list-heading-text;
12
- }
10
+ color: usx-when($usx-process-list-heading-text);
13
11
  }
14
12
 
15
13
  .usa-process-list__item {
16
- @if $usx-process-list-border {
17
- border-left-color: $usx-process-list-border;
18
- }
14
+ border-left-color: usx-when($usx-process-list-border);
19
15
 
20
16
  &::before {
21
- @if $usx-process-list-counter-text {
22
- color: $usx-process-list-counter-text;
23
- }
17
+ color: usx-when($usx-process-list-counter-text);
24
18
 
25
- @if $usx-process-list-counter-border {
26
- border-color: $usx-process-list-counter-border;
27
- }
19
+ border-color: usx-when($usx-process-list-counter-border);
28
20
 
29
21
  @if $usx-process-list-counter-ring {
30
22
  background-color: $usx-process-list-counter-ring;