@cfpb/cfpb-design-system 3.8.0 → 3.10.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 +28 -1
- package/dist/base/index.css +1 -1
- package/dist/base/index.css.map +2 -2
- package/dist/base/index.js +1 -1
- package/dist/base/index.js.map +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 +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-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/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-pagination/index.css +1 -1
- package/dist/components/cfpb-pagination/index.css.map +2 -2
- package/dist/components/cfpb-pagination/index.js.map +1 -1
- package/dist/components/cfpb-tables/index.css +1 -1
- package/dist/components/cfpb-tables/index.css.map +2 -2
- package/dist/components/cfpb-tables/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 +1 -1
- 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/abstracts/media-queries.scss +3 -12
- package/src/base/normalize.scss +4 -0
- package/src/components/cfpb-buttons/button.scss +0 -1
- package/src/components/cfpb-expandables/expandable-group.scss +1 -1
- package/src/components/cfpb-expandables/expandable.scss +1 -1
- package/src/components/cfpb-expandables/summary.scss +5 -1
- package/src/components/cfpb-forms/tag.scss +2 -2
- package/src/components/cfpb-typography/list.scss +0 -11
- package/src/components/cfpb-typography/mixins.scss +5 -0
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
@mixin respond-to-min($bp) {
|
|
13
13
|
$ems: math.div($bp, $base-font-size-px) + em;
|
|
14
14
|
|
|
15
|
-
@media only
|
|
15
|
+
@media only screen and (min-width: $ems) {
|
|
16
16
|
@content;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
@mixin respond-to-max($bp) {
|
|
21
21
|
$ems: math.div($bp, $base-font-size-px) + em;
|
|
22
22
|
|
|
23
|
-
@media only
|
|
23
|
+
@media only screen and (max-width: $ems) {
|
|
24
24
|
@content;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -29,16 +29,7 @@
|
|
|
29
29
|
$ems1: math.div($bp1, $base-font-size-px) + em;
|
|
30
30
|
$ems2: math.div($bp2, $base-font-size-px) + em;
|
|
31
31
|
|
|
32
|
-
@media only
|
|
33
|
-
@content;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@mixin respond-to-print() {
|
|
38
|
-
@media print {
|
|
39
|
-
@content;
|
|
40
|
-
}
|
|
41
|
-
.print {
|
|
32
|
+
@media only screen and (min-width: $ems1) and (max-width: $ems2) {
|
|
42
33
|
@content;
|
|
43
34
|
}
|
|
44
35
|
}
|
package/src/base/normalize.scss
CHANGED
|
@@ -208,7 +208,11 @@ button,
|
|
|
208
208
|
html input[type="button"], /* 1 */
|
|
209
209
|
input[type="reset"],
|
|
210
210
|
input[type="submit"] {
|
|
211
|
+
/* TODO: stylelint wants to convert `appearance: button` to `appearance: auto`
|
|
212
|
+
Investigate why. */
|
|
213
|
+
/* stylelint-disable */
|
|
211
214
|
appearance: button; /* 2 */
|
|
215
|
+
/* stylelint-enable */
|
|
212
216
|
cursor: pointer; /* 3 */
|
|
213
217
|
}
|
|
214
218
|
|
|
@@ -43,14 +43,18 @@
|
|
|
43
43
|
|
|
44
44
|
// 4px is needed because the 2px movement of the content's bounding box.
|
|
45
45
|
top: calc(-100% + 2px);
|
|
46
|
+
|
|
47
|
+
/* TODO: stylelint wants to convert rgba to rgb. Investigate why. */
|
|
48
|
+
/* stylelint-disable */
|
|
46
49
|
background: linear-gradient(
|
|
47
50
|
to bottom,
|
|
48
51
|
rgba(255, 255, 255, 0%) 0%,
|
|
49
52
|
rgba(255, 255, 255, 100%) 100%
|
|
50
53
|
);
|
|
54
|
+
/* stylelint-enable */
|
|
51
55
|
content: '';
|
|
52
56
|
|
|
53
|
-
@
|
|
57
|
+
@media print {
|
|
54
58
|
background: none;
|
|
55
59
|
}
|
|
56
60
|
}
|
|
@@ -42,7 +42,7 @@ button.a-tag-filter {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
&:active {
|
|
45
|
-
background-color: var(--teal);
|
|
45
|
+
background-color: var(--teal-60);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -60,7 +60,7 @@ a.a-tag-filter {
|
|
|
60
60
|
var(--teal),
|
|
61
61
|
var(--teal),
|
|
62
62
|
var(--teal),
|
|
63
|
-
var(--teal)
|
|
63
|
+
var(--teal-60)
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -18,17 +18,6 @@
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
//
|
|
22
|
-
// Spaced list modifier
|
|
23
|
-
//
|
|
24
|
-
|
|
25
|
-
.m-list--spaced {
|
|
26
|
-
.m-list--spaced,
|
|
27
|
-
.m-list__item + .m-list__item {
|
|
28
|
-
margin-top: math.div(24px, $base-font-size-px) + em;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
21
|
//
|
|
33
22
|
// Horizontal list modifier
|
|
34
23
|
//
|
|
@@ -21,7 +21,12 @@
|
|
|
21
21
|
|
|
22
22
|
.#{$jump-link-class}__text {
|
|
23
23
|
color: var(--gray);
|
|
24
|
+
|
|
25
|
+
/* TODO: `word-break: break-word` is deprecated should be converted to
|
|
26
|
+
`overflow-wrap: anywhere` combined with `word-break: normal` */
|
|
27
|
+
/* stylelint-disable declaration-property-value-keyword-no-deprecated */
|
|
24
28
|
word-break: break-word;
|
|
29
|
+
/* stylelint-enable declaration-property-value-keyword-no-deprecated */
|
|
25
30
|
}
|
|
26
31
|
} @else {
|
|
27
32
|
font-weight: 500;
|