@cfpb/cfpb-design-system 4.2.0 → 4.2.2

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +23 -1
  2. package/dist/components/cfpb-forms/index.css +1 -1
  3. package/dist/components/cfpb-forms/index.css.map +2 -2
  4. package/dist/components/cfpb-forms/index.js.map +1 -1
  5. package/dist/components/cfpb-icons/index.css +1 -1
  6. package/dist/components/cfpb-icons/index.css.map +2 -2
  7. package/dist/components/cfpb-icons/index.js +1 -1
  8. package/dist/components/cfpb-icons/index.js.map +1 -1
  9. package/dist/components/cfpb-layout/index.css +1 -1
  10. package/dist/components/cfpb-layout/index.css.map +2 -2
  11. package/dist/components/cfpb-layout/index.js +1 -1
  12. package/dist/components/cfpb-layout/index.js.map +1 -1
  13. package/dist/components/cfpb-typography/index.css +1 -1
  14. package/dist/components/cfpb-typography/index.css.map +2 -2
  15. package/dist/components/cfpb-typography/index.js.map +1 -1
  16. package/dist/elements/cfpb-button/index.js +3 -3
  17. package/dist/elements/cfpb-button/index.js.map +2 -2
  18. package/dist/elements/cfpb-file-upload/index.js +1 -1
  19. package/dist/elements/cfpb-file-upload/index.js.map +2 -2
  20. package/dist/elements/cfpb-icon-text/index.js +1 -1
  21. package/dist/elements/cfpb-icon-text/index.js.map +2 -2
  22. package/dist/elements/cfpb-pagination/index.js +2 -2
  23. package/dist/elements/cfpb-pagination/index.js.map +2 -2
  24. package/dist/elements/cfpb-tag-topic/index.js +1 -1
  25. package/dist/elements/cfpb-tag-topic/index.js.map +2 -2
  26. package/dist/elements/index.js +3 -3
  27. package/dist/elements/index.js.map +2 -2
  28. package/dist/index.css +1 -1
  29. package/dist/index.css.map +2 -2
  30. package/dist/index.js +3 -3
  31. package/dist/index.js.map +2 -2
  32. package/package.json +1 -1
  33. package/src/components/cfpb-icons/icon.scss +1 -1
  34. package/src/components/cfpb-layout/card.scss +8 -11
  35. package/src/components/cfpb-typography/link.scss +6 -0
  36. package/src/components/cfpb-typography/mixins.scss +1 -3
  37. package/src/elements/cfpb-icon-text/cfpb-icon-text.component.scss +1 -0
  38. package/src/elements/cfpb-pagination/cfpb-pagination.component.scss +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cfpb/cfpb-design-system",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
4
4
  "description": "CFPB's UI framework",
5
5
  "exports": {
6
6
  ".": "./src/index.js",
@@ -7,7 +7,7 @@
7
7
 
8
8
  .cf-icon-svg {
9
9
  height: $cf-icon-height;
10
- vertical-align: text-top;
10
+ vertical-align: middle;
11
11
  fill: currentcolor;
12
12
 
13
13
  &--updating,
@@ -9,17 +9,14 @@
9
9
  @mixin u-link-card-colors($c, $v, $h, $f, $a) {
10
10
  .m-card__footer > span {
11
11
  display: inline;
12
- border-width: 0;
13
- border-bottom-width: 1px;
14
- border-color: $c;
15
- border-style: dotted;
12
+ text-decoration-color: $c;
13
+ text-decoration-style: dotted;
16
14
  font-weight: 500;
17
15
  color: $c;
18
- text-decoration: none;
19
16
  }
20
17
 
21
18
  & > a:visited .m-card__footer > span {
22
- border-color: $v;
19
+ text-decoration-color: $v;
23
20
  color: $v;
24
21
  }
25
22
 
@@ -28,19 +25,19 @@
28
25
  // instead of on the link. This differs from the visited, focus,
29
26
  // and active states, which add styles onto the link.
30
27
  &:hover .m-card__footer > span {
31
- border-style: solid;
32
- border-color: $h;
28
+ text-decoration-style: solid;
29
+ text-decoration-color: $h;
33
30
  color: $h;
34
31
  }
35
32
 
36
33
  & > a:focus .m-card__footer > span {
37
- border-color: $f;
34
+ text-decoration-color: $f;
38
35
  color: $f;
39
36
  }
40
37
 
41
38
  & > a:active .m-card__footer > span {
42
- border-color: $a;
43
- border-style: solid;
39
+ text-decoration-color: $a;
40
+ text-decoration-style: solid;
44
41
  color: $a;
45
42
  }
46
43
  }
@@ -13,6 +13,12 @@
13
13
  // See https://github.com/cfpb/consumerfinance.gov/pull/8252
14
14
  overflow-wrap: break-word;
15
15
  }
16
+
17
+ &:hover {
18
+ .a-link__text {
19
+ text-decoration-style: solid;
20
+ }
21
+ }
16
22
  }
17
23
 
18
24
  //
@@ -52,7 +52,7 @@
52
52
  }
53
53
 
54
54
  .#{$jump-link-text-class} {
55
- border-bottom-width: 0;
55
+ text-decoration: none;
56
56
 
57
57
  // Arbitrary high value for flex-shrink to prevent squeezing of the icon
58
58
  // when the link text is very long.
@@ -71,8 +71,6 @@
71
71
  .#{$jump-link-class}__text {
72
72
  border-bottom-color: var(--gold-80);
73
73
  }
74
- } @else {
75
- font-weight: 500;
76
74
  }
77
75
 
78
76
  // Mobile only.
@@ -16,6 +16,7 @@
16
16
  // This prevents the child button from having an empty gap after the button.
17
17
  display: flex;
18
18
  width: fit-content;
19
+ align-items: center;
19
20
 
20
21
  // Hide SVG by default.
21
22
  & ::slotted(svg) {
@@ -7,7 +7,7 @@
7
7
 
8
8
  .cf-icon-svg {
9
9
  height: $cf-icon-height;
10
- vertical-align: text-top;
10
+ vertical-align: middle;
11
11
  fill: currentcolor;
12
12
  }
13
13