@cfpb/cfpb-design-system 3.4.10 → 3.4.12

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.10",
3
+ "version": "3.4.12",
4
4
  "description": "CFPB's UI framework",
5
5
  "main": "src/index.js",
6
6
  "author": {
@@ -27,6 +27,21 @@ textarea {
27
27
  font-family: var(--font-stack);
28
28
  }
29
29
 
30
+ /*
31
+ * On iOS Safari the input is collapsed till it's clicked.
32
+ * This sets the default min width and height to what it would be if the
33
+ * appearance was a textfield.
34
+ */
35
+ input[type='date'] {
36
+ display: revert;
37
+ min-width: 98px;
38
+ min-height: 29px;
39
+
40
+ &.a-text-input--full {
41
+ min-width: 100%;
42
+ }
43
+ }
44
+
30
45
  strong,
31
46
  b {
32
47
  font-weight: 600;
@@ -4,7 +4,6 @@
4
4
 
5
5
  .m-form-field {
6
6
  .a-text-input--full {
7
- box-sizing: border-box;
8
7
  width: 100%;
9
8
  }
10
9
 
@@ -88,6 +88,7 @@
88
88
  border: 1px solid $input-border;
89
89
  background: $input-bg;
90
90
  color: $input-text;
91
+ box-sizing: border-box;
91
92
 
92
93
  &:hover,
93
94
  &.hover {
@@ -7,6 +7,9 @@
7
7
  .a-link__text {
8
8
  border-bottom-width: 1px;
9
9
  border-bottom-style: inherit;
10
+
11
+ // See https://github.com/cfpb/consumerfinance.gov/pull/8252
12
+ overflow-wrap: break-word;
10
13
  }
11
14
  }
12
15
 
@@ -351,12 +351,8 @@ $ba: Link underline active color.
351
351
  // Width utilities
352
352
  //
353
353
 
354
- @mixin u-w100pct() {
355
- width: 100%;
356
- }
357
-
358
354
  .u-w100pct {
359
- @include u-w100pct;
355
+ width: 100%;
360
356
  }
361
357
 
362
358
  .u-w90pct {
@@ -399,10 +395,18 @@ $ba: Link underline active color.
399
395
  width: 75%;
400
396
  }
401
397
 
398
+ .u-w65pct {
399
+ width: 65%;
400
+ }
401
+
402
402
  .u-w25pct {
403
403
  width: 25%;
404
404
  }
405
405
 
406
+ .u-w15pct {
407
+ width: 15%;
408
+ }
409
+
406
410
  .u-w66pct {
407
411
  width: math.div(2, 3) * 100%;
408
412
  }