@cfpb/cfpb-design-system 3.6.3 → 3.7.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.
- package/CHANGELOG.md +23 -8
- package/dist/components/cfpb-buttons/index.css +1 -1
- package/dist/components/cfpb-buttons/index.css.map +2 -2
- package/dist/components/cfpb-buttons/index.js +1 -1
- package/dist/components/cfpb-buttons/index.js.map +1 -1
- package/dist/components/cfpb-expandables/index.css +1 -1
- package/dist/components/cfpb-expandables/index.css.map +2 -2
- package/dist/components/cfpb-expandables/index.js +1 -1
- package/dist/components/cfpb-expandables/index.js.map +1 -1
- package/dist/components/cfpb-forms/index.css +1 -1
- package/dist/components/cfpb-forms/index.css.map +2 -2
- package/dist/components/cfpb-forms/index.js +1 -1
- package/dist/components/cfpb-forms/index.js.map +1 -1
- package/dist/components/cfpb-notifications/index.css +1 -1
- package/dist/components/cfpb-notifications/index.css.map +2 -2
- package/dist/components/cfpb-notifications/index.js.map +1 -1
- package/dist/components/cfpb-tooltips/index.css +1 -1
- package/dist/components/cfpb-tooltips/index.css.map +2 -2
- package/dist/components/cfpb-tooltips/index.js.map +1 -1
- package/dist/components/cfpb-typography/index.css +1 -1
- package/dist/components/cfpb-typography/index.css.map +2 -2
- package/dist/components/cfpb-typography/index.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/utilities/index.css +1 -1
- package/dist/utilities/index.css.map +2 -2
- package/dist/utilities/index.js +1 -1
- package/dist/utilities/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/cfpb-buttons/button-group.scss +1 -1
- package/src/components/cfpb-buttons/button-link.scss +2 -7
- package/src/components/cfpb-buttons/button.scss +11 -3
- package/src/components/cfpb-buttons/vars.scss +8 -5
- package/src/components/cfpb-notifications/notification.scss +4 -0
package/package.json
CHANGED
|
@@ -81,13 +81,8 @@ $a: Link active color.
|
|
|
81
81
|
// Secondary button link
|
|
82
82
|
//
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
$btn-secondary-bg,
|
|
87
|
-
$btn-secondary-bg-hover,
|
|
88
|
-
$btn-secondary-bg,
|
|
89
|
-
$btn-secondary-bg-active
|
|
90
|
-
);
|
|
84
|
+
// The .a-btn--link.a-btn--secondary combo shouldn't be used,
|
|
85
|
+
// so we provide no styles.
|
|
91
86
|
|
|
92
87
|
//
|
|
93
88
|
// Destructive action button link
|
|
@@ -81,23 +81,28 @@ input.a-btn::-moz-focus-inner {
|
|
|
81
81
|
&:visited {
|
|
82
82
|
background-color: $btn-secondary-bg;
|
|
83
83
|
color: $btn-secondary-text;
|
|
84
|
+
box-shadow: 0 0 0 1px $btn-secondary-border inset;
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
&:hover,
|
|
87
88
|
&.hover,
|
|
88
89
|
&:focus,
|
|
89
90
|
&.focus {
|
|
90
|
-
background-color: $btn-secondary-bg
|
|
91
|
+
background-color: $btn-secondary-bg;
|
|
92
|
+
color: $btn-secondary-text-hover;
|
|
93
|
+
box-shadow: 0 0 0 1px $btn-secondary-border-hover inset;
|
|
91
94
|
}
|
|
92
95
|
|
|
93
96
|
&:focus,
|
|
94
97
|
&.focus {
|
|
95
|
-
outline-color: $btn-secondary-
|
|
98
|
+
outline-color: $btn-secondary-border;
|
|
96
99
|
}
|
|
97
100
|
|
|
98
101
|
&:active,
|
|
99
102
|
&.active {
|
|
100
|
-
background-color: $btn-secondary-bg
|
|
103
|
+
background-color: $btn-secondary-bg;
|
|
104
|
+
color: $btn-secondary-text-active;
|
|
105
|
+
box-shadow: 0 0 0 1px $btn-secondary-border-active inset;
|
|
101
106
|
}
|
|
102
107
|
}
|
|
103
108
|
|
|
@@ -179,6 +184,9 @@ input.a-btn::-moz-focus-inner {
|
|
|
179
184
|
&:has(span + svg) {
|
|
180
185
|
svg {
|
|
181
186
|
order: 3;
|
|
187
|
+
|
|
188
|
+
// Prevent icon from shrinking when button wraps.
|
|
189
|
+
flex: none;
|
|
182
190
|
}
|
|
183
191
|
}
|
|
184
192
|
|
|
@@ -19,11 +19,14 @@ $btn-bg-active: var(--navy);
|
|
|
19
19
|
$btn-divider: var(--pacific-60);
|
|
20
20
|
|
|
21
21
|
// .btn__secondary
|
|
22
|
-
$btn-secondary-text: var(--
|
|
23
|
-
$btn-secondary-
|
|
24
|
-
$btn-secondary-
|
|
25
|
-
$btn-secondary-bg
|
|
26
|
-
$btn-secondary-
|
|
22
|
+
$btn-secondary-text: var(--pacific);
|
|
23
|
+
$btn-secondary-text-hover: var(--pacific-dark);
|
|
24
|
+
$btn-secondary-text-active: var(--navy);
|
|
25
|
+
$btn-secondary-bg: var(--white);
|
|
26
|
+
$btn-secondary-border: var(--pacific);
|
|
27
|
+
$btn-secondary-border-hover: var(--pacific-dark);
|
|
28
|
+
$btn-secondary-border-active: var(--navy);
|
|
29
|
+
$btn-secondary-divider: var(--pacific-60);
|
|
27
30
|
|
|
28
31
|
// .btn__warning
|
|
29
32
|
$btn-warning-text: var(--white);
|