@cfpb/cfpb-design-system 3.7.0 → 3.8.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.
Files changed (32) hide show
  1. package/CHANGELOG.md +25 -1
  2. package/dist/base/index.css +1 -1
  3. package/dist/base/index.css.map +2 -2
  4. package/dist/base/index.js.map +1 -1
  5. package/dist/components/cfpb-buttons/index.css +1 -1
  6. package/dist/components/cfpb-buttons/index.css.map +2 -2
  7. package/dist/components/cfpb-buttons/index.js.map +1 -1
  8. package/dist/components/cfpb-expandables/index.css +1 -1
  9. package/dist/components/cfpb-expandables/index.css.map +2 -2
  10. package/dist/components/cfpb-expandables/index.js.map +1 -1
  11. package/dist/components/cfpb-forms/index.css +1 -1
  12. package/dist/components/cfpb-forms/index.css.map +2 -2
  13. package/dist/components/cfpb-forms/index.js.map +1 -1
  14. package/dist/components/cfpb-notifications/index.css +1 -1
  15. package/dist/components/cfpb-notifications/index.css.map +2 -2
  16. package/dist/components/cfpb-notifications/index.js.map +1 -1
  17. package/dist/components/cfpb-tooltips/index.css +1 -1
  18. package/dist/components/cfpb-tooltips/index.css.map +2 -2
  19. package/dist/components/cfpb-tooltips/index.js.map +1 -1
  20. package/dist/index.css +1 -1
  21. package/dist/index.css.map +2 -2
  22. package/dist/index.js.map +1 -1
  23. package/dist/utilities/index.css +1 -1
  24. package/dist/utilities/index.css.map +2 -2
  25. package/dist/utilities/index.js.map +1 -1
  26. package/package.json +1 -1
  27. package/src/base/base.scss +6 -0
  28. package/src/components/cfpb-buttons/button.scss +2 -2
  29. package/src/components/cfpb-buttons/vars.scss +2 -0
  30. package/src/components/cfpb-forms/form-alert.scss +5 -2
  31. package/src/components/cfpb-notifications/notification.scss +5 -5
  32. package/src/components/cfpb-notifications/vars.scss +0 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cfpb/cfpb-design-system",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "description": "CFPB's UI framework",
5
5
  "exports": {
6
6
  ".": "./src/index.js",
@@ -44,6 +44,12 @@ input[type='date'] {
44
44
  }
45
45
  }
46
46
 
47
+ // Globally remove inset border style from HR elements.
48
+ hr {
49
+ border: none;
50
+ border-top: 1px solid var(--gray-40);
51
+ }
52
+
47
53
  strong,
48
54
  b {
49
55
  font-weight: 600;
@@ -88,7 +88,7 @@ input.a-btn::-moz-focus-inner {
88
88
  &.hover,
89
89
  &:focus,
90
90
  &.focus {
91
- background-color: $btn-secondary-bg;
91
+ background-color: $btn-secondary-bg-hover;
92
92
  color: $btn-secondary-text-hover;
93
93
  box-shadow: 0 0 0 1px $btn-secondary-border-hover inset;
94
94
  }
@@ -100,7 +100,7 @@ input.a-btn::-moz-focus-inner {
100
100
 
101
101
  &:active,
102
102
  &.active {
103
- background-color: $btn-secondary-bg;
103
+ background-color: $btn-secondary-bg-active;
104
104
  color: $btn-secondary-text-active;
105
105
  box-shadow: 0 0 0 1px $btn-secondary-border-active inset;
106
106
  }
@@ -23,6 +23,8 @@ $btn-secondary-text: var(--pacific);
23
23
  $btn-secondary-text-hover: var(--pacific-dark);
24
24
  $btn-secondary-text-active: var(--navy);
25
25
  $btn-secondary-bg: var(--white);
26
+ $btn-secondary-bg-hover: var(--pacific-10);
27
+ $btn-secondary-bg-active: var(--pacific-20);
26
28
  $btn-secondary-border: var(--pacific);
27
29
  $btn-secondary-border-hover: var(--pacific-dark);
28
30
  $btn-secondary-border-active: var(--navy);
@@ -2,14 +2,17 @@
2
2
  @use '@cfpb/cfpb-design-system/src/abstracts' as *;
3
3
 
4
4
  .a-form-alert {
5
+ display: flex;
6
+ gap: math.div(5px, $base-font-size-px) + rem;
7
+
5
8
  .cf-icon-svg {
6
9
  color: $input-icon;
7
- float: left;
10
+ flex: none;
11
+ margin-top: math.div(1px, $base-font-size-px) + rem;
8
12
  }
9
13
 
10
14
  &__text {
11
15
  display: block;
12
- margin-left: math.div(20px, $base-font-size-px) + em;
13
16
  }
14
17
 
15
18
  &--success .cf-icon-svg {
@@ -9,13 +9,12 @@
9
9
 
10
10
  .m-notification {
11
11
  display: none;
12
- position: relative;
13
- padding: $notification-padding-px;
12
+ padding: math.div(15px, $base-font-size-px) + rem;
14
13
  background: $notification-bg;
15
14
  border: 1px solid $notification-border;
16
15
 
17
16
  & > .cf-icon-svg {
18
- position: absolute;
17
+ flex: none;
19
18
  fill: $notification-icon;
20
19
  }
21
20
 
@@ -63,7 +62,8 @@
63
62
  }
64
63
 
65
64
  &--visible {
66
- display: block;
65
+ display: flex;
66
+ gap: math.div(5px, $base-font-size-px) + rem;
67
67
  }
68
68
 
69
69
  &__content {
@@ -72,7 +72,7 @@
72
72
 
73
73
  // Only adding left padding if an icon is present.
74
74
  .cf-icon-svg + &__content {
75
- padding-left: math.div(25px, $base-font-size-px) + rem;
75
+ flex-grow: 1;
76
76
  }
77
77
 
78
78
  &__message {
@@ -21,7 +21,3 @@ $notification-icon: var(--gray);
21
21
  $notification-icon-success: var(--green);
22
22
  $notification-icon-warning: var(--gold);
23
23
  $notification-icon-error: var(--red);
24
-
25
- // Sizing variables
26
-
27
- $notification-padding-px: 15px;