@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cfpb/cfpb-design-system",
3
- "version": "3.4.2",
3
+ "version": "3.4.4",
4
4
  "description": "CFPB's UI framework",
5
5
  "main": "src/index.js",
6
6
  "author": {
@@ -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
  }