@cfpb/cfpb-design-system 3.4.2 → 3.4.4
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 +50 -30
- package/README.md +1 -1
- 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 +9 -1
package/package.json
CHANGED
|
@@ -167,10 +167,18 @@ input.a-btn::-moz-focus-inner {
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
// Handle button with icon logic.
|
|
170
|
-
&:has(svg)::before {
|
|
170
|
+
&:not(.a-btn--hide-icon):has(svg)::before {
|
|
171
171
|
@include a-btn-divider;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
+
// Hide the icon if the a-btn--hide-icon modifier is set.
|
|
175
|
+
// Useful for showing and hiding a loading icon, for example.
|
|
176
|
+
&--hide-icon {
|
|
177
|
+
svg {
|
|
178
|
+
display: none;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
174
182
|
&--secondary:has(svg)::before {
|
|
175
183
|
border-color: $btn-secondary-divider;
|
|
176
184
|
}
|