@cfpb/cfpb-design-system 3.4.3 → 3.4.5
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 +52 -31
- 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.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.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.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +2 -2
- 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.map +1 -1
- package/package.json +1 -1
- package/src/components/cfpb-buttons/button.scss +10 -1
package/package.json
CHANGED
|
@@ -24,6 +24,7 @@ input.a-btn::-moz-focus-inner {
|
|
|
24
24
|
appearance: none;
|
|
25
25
|
display: flex;
|
|
26
26
|
gap: math.div(10px, $base-font-size-px) + rem;
|
|
27
|
+
justify-content: center;
|
|
27
28
|
|
|
28
29
|
box-sizing: border-box;
|
|
29
30
|
padding: math.div($btn-v-padding, $btn-font-size) + em
|
|
@@ -167,10 +168,18 @@ input.a-btn::-moz-focus-inner {
|
|
|
167
168
|
}
|
|
168
169
|
|
|
169
170
|
// Handle button with icon logic.
|
|
170
|
-
&:has(svg)::before {
|
|
171
|
+
&:not(.a-btn--hide-icon):has(svg)::before {
|
|
171
172
|
@include a-btn-divider;
|
|
172
173
|
}
|
|
173
174
|
|
|
175
|
+
// Hide the icon if the a-btn--hide-icon modifier is set.
|
|
176
|
+
// Useful for showing and hiding a loading icon, for example.
|
|
177
|
+
&--hide-icon {
|
|
178
|
+
svg {
|
|
179
|
+
display: none;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
174
183
|
&--secondary:has(svg)::before {
|
|
175
184
|
border-color: $btn-secondary-divider;
|
|
176
185
|
}
|