@cfpb/cfpb-design-system 3.4.13 → 3.5.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 -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/components/cfpb-layout/index.css +1 -1
- package/dist/components/cfpb-layout/index.css.map +2 -2
- package/dist/components/cfpb-layout/index.js +1 -1
- package/dist/components/cfpb-layout/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-forms/tag.scss +15 -13
- package/src/components/cfpb-layout/featured-content-module.scss +0 -22
- package/src/components/cfpb-layout/hero.scss +10 -1
package/package.json
CHANGED
|
@@ -16,6 +16,21 @@
|
|
|
16
16
|
text-align: left;
|
|
17
17
|
min-width: fit-content;
|
|
18
18
|
|
|
19
|
+
.cf-icon-svg {
|
|
20
|
+
pointer-events: none;
|
|
21
|
+
|
|
22
|
+
// Prevent flexbox from squishing icon when tag text is long.
|
|
23
|
+
flex: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// If the contents are wrapped in a label, negate the label's display.
|
|
27
|
+
> label {
|
|
28
|
+
display: contents;
|
|
29
|
+
pointer-events: none;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
button.a-tag-filter {
|
|
19
34
|
&:hover {
|
|
20
35
|
background-color: var(--teal-40);
|
|
21
36
|
cursor: pointer;
|
|
@@ -29,19 +44,6 @@
|
|
|
29
44
|
&:active {
|
|
30
45
|
background-color: var(--teal);
|
|
31
46
|
}
|
|
32
|
-
|
|
33
|
-
.cf-icon-svg {
|
|
34
|
-
pointer-events: none;
|
|
35
|
-
|
|
36
|
-
// Prevent flexbox from squishing icon when tag text is long.
|
|
37
|
-
flex: none;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// If the contents are wrapped in a label, negate the label's display.
|
|
41
|
-
> label {
|
|
42
|
-
display: contents;
|
|
43
|
-
pointer-events: none;
|
|
44
|
-
}
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
a.a-tag-filter {
|
|
@@ -70,26 +70,4 @@
|
|
|
70
70
|
transform: translateX(-50%);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
|
|
74
|
-
// Modifiers
|
|
75
|
-
&--left {
|
|
76
|
-
/* Left modifier doesn't have a border/background. If in the future we
|
|
77
|
-
have a left arranged FCM we'll want to make the border/background
|
|
78
|
-
its own modifer */
|
|
79
|
-
border: initial;
|
|
80
|
-
background-color: initial;
|
|
81
|
-
|
|
82
|
-
.o-featured-content-module__visual {
|
|
83
|
-
left: 0;
|
|
84
|
-
right: initial;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.o-featured-content-module__text {
|
|
88
|
-
// Tablet and above.
|
|
89
|
-
@include respond-to-min($bp-sm-min) {
|
|
90
|
-
padding-left: $fcm-visual-width + $grid-gutter-width;
|
|
91
|
-
padding-right: math.div($grid-gutter-width, $base-font-size-px) + em;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
73
|
}
|
|
@@ -108,6 +108,7 @@ $hero-desktop-height: 285px;
|
|
|
108
108
|
&__image-wrapper {
|
|
109
109
|
margin-top: math.div($grid-gutter-width, $base-font-size-px) + em;
|
|
110
110
|
}
|
|
111
|
+
|
|
111
112
|
&--overlay {
|
|
112
113
|
.m-hero__wrapper {
|
|
113
114
|
// Overwrite the image that is set in the markup because
|
|
@@ -115,6 +116,7 @@ $hero-desktop-height: 285px;
|
|
|
115
116
|
background-image: none !important;
|
|
116
117
|
}
|
|
117
118
|
}
|
|
119
|
+
|
|
118
120
|
&--jumbo {
|
|
119
121
|
.m-hero__wrapper {
|
|
120
122
|
// Keep hero image flush with container on mobile
|
|
@@ -130,6 +132,7 @@ $hero-desktop-height: 285px;
|
|
|
130
132
|
&__heading {
|
|
131
133
|
@include heading-2($is-responsive: false);
|
|
132
134
|
}
|
|
135
|
+
|
|
133
136
|
&__subhead {
|
|
134
137
|
font-size: $size-iv;
|
|
135
138
|
}
|
|
@@ -145,9 +148,11 @@ $hero-desktop-height: 285px;
|
|
|
145
148
|
padding-left: math.div($grid-gutter-width, 2);
|
|
146
149
|
min-height: $hero-desktop-height - ($grid-gutter-width * 2);
|
|
147
150
|
}
|
|
151
|
+
|
|
148
152
|
&__text {
|
|
149
|
-
margin: auto;
|
|
153
|
+
margin: auto 0;
|
|
150
154
|
}
|
|
155
|
+
|
|
151
156
|
&__image-wrapper {
|
|
152
157
|
padding-right: math.div($grid-gutter-width, 2);
|
|
153
158
|
padding-left: math.div(
|
|
@@ -157,6 +162,7 @@ $hero-desktop-height: 285px;
|
|
|
157
162
|
display: flex;
|
|
158
163
|
align-items: center;
|
|
159
164
|
}
|
|
165
|
+
|
|
160
166
|
&--bleeding {
|
|
161
167
|
.m-hero__image-wrapper {
|
|
162
168
|
width: 100%;
|
|
@@ -172,11 +178,13 @@ $hero-desktop-height: 285px;
|
|
|
172
178
|
background-size: cover;
|
|
173
179
|
}
|
|
174
180
|
}
|
|
181
|
+
|
|
175
182
|
&--overlay {
|
|
176
183
|
.m-hero__image {
|
|
177
184
|
display: none;
|
|
178
185
|
}
|
|
179
186
|
}
|
|
187
|
+
|
|
180
188
|
&--jumbo {
|
|
181
189
|
.m-hero__wrapper {
|
|
182
190
|
background-position: 50%;
|
|
@@ -187,6 +195,7 @@ $hero-desktop-height: 285px;
|
|
|
187
195
|
display: none;
|
|
188
196
|
}
|
|
189
197
|
}
|
|
198
|
+
|
|
190
199
|
&--50-50 {
|
|
191
200
|
.m-hero__wrapper {
|
|
192
201
|
grid-template-columns: 1fr 1fr;
|