@utahdts/utah-design-system 4.3.0 → 5.0.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 (25) hide show
  1. package/css/1-settings/_color-swatches.scss +74 -0
  2. package/css/1-settings/_font-stuff.scss +52 -2
  3. package/css/1-settings/_settings-index.scss +91 -12
  4. package/css/6-components/base-components/containers/_drawer.scss +1 -1
  5. package/css/6-components/base-components/containers/_tab-group.scss +3 -0
  6. package/css/6-components/base-components/footer/_utah-footer.scss +4 -1
  7. package/css/6-components/base-components/forms/_text-input.scss +1 -0
  8. package/css/6-components/base-components/navigation/_main-menu.scss +4 -1
  9. package/css/6-components/base-components/popups/_search-modal.scss +8 -0
  10. package/css/6-components/base-components/widgetsIndicators/_badge.scss +2 -2
  11. package/css/6-components/project-components/_swatch-list.scss +5 -2
  12. package/css/6-components/utah-header/_badge.scss +2 -2
  13. package/css/6-components/utah-header/_logos.scss +9 -6
  14. package/css/6-components/utah-header/_mobile-menu.scss +3 -3
  15. package/css/6-components/utah-header/_notifications.scss +200 -0
  16. package/css/6-components/utah-header/_official-banner.scss +78 -0
  17. package/css/6-components/utah-header/_official-website-popup.scss +3 -2
  18. package/css/6-components/utah-header/_utah-header-wrapper.scss +12 -1
  19. package/css/6-components/utah-header/index.scss +2 -0
  20. package/dist/style.css +409 -37
  21. package/dist/utah-design-system.es.js +7450 -7232
  22. package/dist/utah-design-system.umd.js +7732 -7340
  23. package/package.json +11 -11
  24. package/react/components/table/TableWrapper.jsx +7 -0
  25. package/react/components/table/useCurrentValuesFromStateContext.js +1 -1
@@ -439,3 +439,77 @@ $cool-gray-14: #c7cacc;
439
439
  $cool-gray-15: #d5d7d9;
440
440
  $cool-gray-16: #e3e4e5;
441
441
  $cool-gray-17: #f1f1f2;
442
+
443
+
444
+ /*
445
+ branding colors
446
+ */
447
+ $branding-blue-dark: #071D49;
448
+ $branding-blue-medium: #093692;
449
+ $branding-blue-light: #81D0F0;
450
+ $branding-gold-light: #FFB81D;
451
+ $branding-gold-medium: #FF8C03;
452
+ $branding-red: #AA0200;
453
+
454
+ $clay-00: #E9DCC8;
455
+ $clay-01: #C0B1A1;
456
+ $clay-02: #9C837E;
457
+ $clay-03: #78555A;
458
+ $clay-04: #52393B;
459
+ $clay-05: #2C1E1B;
460
+
461
+ $green-00: #C6D0BE;
462
+ $green-01: #94AF87;
463
+ $green-02: #4A9044;
464
+ $green-03: #007000;
465
+ $green-04: #1C4C10;
466
+ $green-05: #092908;
467
+
468
+ $teal-00: #A6C4CA;
469
+ $teal-01: #79B1B1;
470
+ $teal-02: #3D9992;
471
+ $teal-03: #008072;
472
+ $teal-04: #165857;
473
+ $teal-05: #0D262E;
474
+
475
+ $blue-00: #C1CFE7;
476
+ $blue-01: #89A4D4;
477
+ $blue-02: #467EC8;
478
+ $blue-03: #0258BB;
479
+ $blue-04: #103982;
480
+ $blue-05: #0E1C3B;
481
+
482
+ $violet-00: #D6CEDF;
483
+ $violet-01: #9F8DB4;
484
+ $violet-02: #7259AA;
485
+ $violet-03: #3F1EAD;
486
+ $violet-04: #301C5C;
487
+ $violet-05: #1F0A45;
488
+
489
+ $raspberry-00: #D0A7BB;
490
+ $raspberry-01: #C9829E;
491
+ $raspberry-02: #C24177;
492
+ $raspberry-03: #BA004F;
493
+ $raspberry-04: #870746;
494
+ $raspberry-05: #530D3C;
495
+
496
+ $red-00: #E1ACA1;
497
+ $red-01: #DF897D;
498
+ $red-02: #FF5D5F;
499
+ $red-03: #E70015;
500
+ $red-04: #9B1B15;
501
+ $red-05: #61100A;
502
+
503
+ $orange-00: #E9C997;
504
+ $orange-01: #E5A873;
505
+ $orange-02: #E37D49;
506
+ $orange-03: #E2521F;
507
+ $orange-04: #A34818;
508
+ $orange-05: #633D11;
509
+
510
+ $yellow-00: #FAFAD4;
511
+ $yellow-01: #F8FAAF;
512
+ $yellow-02: #F5FA7D;
513
+ $yellow-03: #F2FA00;
514
+ $yellow-04: #CBB60C;
515
+ $yellow-05: #A47217;
@@ -4,11 +4,62 @@ Font size variables
4
4
  */
5
5
  @use "../1-settings/class-vars";
6
6
 
7
+ @font-face {
8
+ font-family: "UT Industry";
9
+ src:
10
+ url("https://cdn.utah.gov/design-system/fonts/ut-industry/woff2/UTIndustry-Regular.woff2") format("woff2"),
11
+ url("https://cdn.utah.gov/design-system/fonts/ut-industry/woff/UTIndustry-Regular.woff") format("woff"),
12
+ url("https://cdn.utah.gov/design-system/fonts/ut-industry/otf/UTIndustry-Regular.otf") format("opentype"),
13
+ url("https://cdn.utah.gov/design-system/fonts/ut-industry/ttf/UTIndustry-Regular.ttf") format("truetype");
14
+ font-weight: 400;
15
+ font-style: normal;
16
+ font-display: block;
17
+ }
18
+
19
+ @font-face {
20
+ font-family: "UT Industry";
21
+ src:
22
+ url("https://cdn.utah.gov/design-system/fonts/ut-industry/woff2/UTIndustry-Medium.woff2") format("woff2"),
23
+ url("https://cdn.utah.gov/design-system/fonts/ut-industry/woff/UTIndustry-Medium.woff") format("woff"),
24
+ url("https://cdn.utah.gov/design-system/fonts/ut-industry/otf/UTIndustry-Medium.otf") format("opentype"),
25
+ url("https://cdn.utah.gov/design-system/fonts/ut-industry/ttf/UTIndustry-Medium.ttf") format("truetype");
26
+ font-weight: 500;
27
+ font-style: normal;
28
+ font-display: block;
29
+ }
30
+
31
+ @font-face {
32
+ font-family: "UT Industry";
33
+ src:
34
+ url("https://cdn.utah.gov/design-system/fonts/ut-industry/woff2/UTIndustry-Bold.woff2") format("woff2"),
35
+ url("https://cdn.utah.gov/design-system/fonts/ut-industry/woff/UTIndustry-Bold.woff") format("woff"),
36
+ url("https://cdn.utah.gov/design-system/fonts/ut-industry/otf/UTIndustry-Bold.otf") format("opentype"),
37
+ url("https://cdn.utah.gov/design-system/fonts/ut-industry/ttf/UTIndustry-Bold.ttf") format("truetype");
38
+ font-weight: 700;
39
+ font-style: normal;
40
+ font-display: block;
41
+ }
42
+
43
+ @font-face {
44
+ font-family: "UT Industry";
45
+ src:
46
+ url("https://cdn.utah.gov/design-system/fonts/ut-industry/woff2/UTIndustry-Heavy.woff2") format("woff2"),
47
+ url("https://cdn.utah.gov/design-system/fonts/ut-industry/woff/UTIndustry-Heavy.woff") format("woff"),
48
+ url("https://cdn.utah.gov/design-system/fonts/ut-industry/otf/UTIndustry-Heavy.otf") format("opentype"),
49
+ url("https://cdn.utah.gov/design-system/fonts/ut-industry/ttf/UTIndustry-Heavy.ttf") format("truetype");
50
+ font-weight: 900;
51
+ font-style: normal;
52
+ font-display: block;
53
+ }
54
+
55
+ :root {
56
+ --ut-industry-font-family: 'UT Industry', Georgia, serif;
57
+ }
58
+
7
59
  #{class-vars.$base-class} {
8
60
  --normal-font-family: 'Source Sans 3', 'Source Sans Pro', 'Helvetica Neue', Helvetica, sans-serif;
9
61
  --fixed-width-font-family: 'Source Code Pro', monospace;
10
62
 
11
- --font-size-2xs: .8125rem; //13
12
63
  --font-size-xs: .875rem; //14
13
64
  --font-size-s: .9375rem; //15
14
65
  --font-size: 1rem; //16
@@ -29,7 +80,6 @@ Font size variables
29
80
  --font-weight-bold: 700;
30
81
  --font-weight-black: 900;
31
82
 
32
- .font-size-2xs { font-size: var(--font-size-2xs); }
33
83
  .font-size-xs { font-size: var(--font-size-xs); }
34
84
  .font-size-s { font-size: var(--font-size-s); }
35
85
  .font-size { font-size: var(--font-size); }
@@ -18,30 +18,109 @@ variables and settings
18
18
  @forward "media-size-vars";
19
19
  @use "media-size-vars";
20
20
 
21
+ :root {
22
+ /* ######## ---------- Branding --------- ######## */
23
+ --utah-brand-primary-color-blue-dark: #{color-swatches.$branding-blue-dark};
24
+ --utah-brand-primary-color-blue-medium: #{color-swatches.$branding-blue-medium};
25
+ --utah-brand-primary-color-blue-light: #{color-swatches.$branding-blue-light};
26
+ --utah-brand-primary-color-gold-light: #{color-swatches.$branding-gold-light};
27
+ --utah-brand-primary-color-gold-medium: #{color-swatches.$branding-gold-medium};
28
+ --utah-brand-primary-color-red: #{color-swatches.$branding-red};
29
+
30
+ --utah-brand-secondary-color-clay-00: #{color-swatches.$clay-00};
31
+ --utah-brand-secondary-color-clay-01: #{color-swatches.$clay-01};
32
+ --utah-brand-secondary-color-clay-02: #{color-swatches.$clay-02};
33
+ --utah-brand-secondary-color-clay-03: #{color-swatches.$clay-03};
34
+ --utah-brand-secondary-color-clay-04: #{color-swatches.$clay-04};
35
+ --utah-brand-secondary-color-clay-05: #{color-swatches.$clay-05};
36
+
37
+ --utah-brand-secondary-color-green-00: #{color-swatches.$green-00};
38
+ --utah-brand-secondary-color-green-01: #{color-swatches.$green-01};
39
+ --utah-brand-secondary-color-green-02: #{color-swatches.$green-02};
40
+ --utah-brand-secondary-color-green-03: #{color-swatches.$green-03};
41
+ --utah-brand-secondary-color-green-04: #{color-swatches.$green-04};
42
+ --utah-brand-secondary-color-green-05: #{color-swatches.$green-05};
43
+
44
+ --utah-brand-secondary-color-teal-00: #{color-swatches.$teal-00};
45
+ --utah-brand-secondary-color-teal-01: #{color-swatches.$teal-01};
46
+ --utah-brand-secondary-color-teal-02: #{color-swatches.$teal-02};
47
+ --utah-brand-secondary-color-teal-03: #{color-swatches.$teal-03};
48
+ --utah-brand-secondary-color-teal-04: #{color-swatches.$teal-04};
49
+ --utah-brand-secondary-color-teal-05: #{color-swatches.$teal-05};
50
+
51
+ --utah-brand-secondary-color-blue-00: #{color-swatches.$blue-00};
52
+ --utah-brand-secondary-color-blue-01: #{color-swatches.$blue-01};
53
+ --utah-brand-secondary-color-blue-02: #{color-swatches.$blue-02};
54
+ --utah-brand-secondary-color-blue-03: #{color-swatches.$blue-03};
55
+ --utah-brand-secondary-color-blue-04: #{color-swatches.$blue-04};
56
+ --utah-brand-secondary-color-blue-05: #{color-swatches.$blue-05};
57
+
58
+ --utah-brand-secondary-color-violet-00: #{color-swatches.$violet-00};
59
+ --utah-brand-secondary-color-violet-01: #{color-swatches.$violet-01};
60
+ --utah-brand-secondary-color-violet-02: #{color-swatches.$violet-02};
61
+ --utah-brand-secondary-color-violet-03: #{color-swatches.$violet-03};
62
+ --utah-brand-secondary-color-violet-04: #{color-swatches.$violet-04};
63
+ --utah-brand-secondary-color-violet-05: #{color-swatches.$violet-05};
64
+
65
+ --utah-brand-secondary-color-raspberry-00: #{color-swatches.$raspberry-00};
66
+ --utah-brand-secondary-color-raspberry-01: #{color-swatches.$raspberry-01};
67
+ --utah-brand-secondary-color-raspberry-02: #{color-swatches.$raspberry-02};
68
+ --utah-brand-secondary-color-raspberry-03: #{color-swatches.$raspberry-03};
69
+ --utah-brand-secondary-color-raspberry-04: #{color-swatches.$raspberry-04};
70
+ --utah-brand-secondary-color-raspberry-05: #{color-swatches.$raspberry-05};
71
+
72
+ --utah-brand-secondary-color-red-00: #{color-swatches.$red-00};
73
+ --utah-brand-secondary-color-red-01: #{color-swatches.$red-01};
74
+ --utah-brand-secondary-color-red-02: #{color-swatches.$red-02};
75
+ --utah-brand-secondary-color-red-03: #{color-swatches.$red-03};
76
+ --utah-brand-secondary-color-red-04: #{color-swatches.$red-04};
77
+ --utah-brand-secondary-color-red-05: #{color-swatches.$red-05};
78
+
79
+ --utah-brand-secondary-color-orange-00: #{color-swatches.$orange-00};
80
+ --utah-brand-secondary-color-orange-01: #{color-swatches.$orange-01};
81
+ --utah-brand-secondary-color-orange-02: #{color-swatches.$orange-02};
82
+ --utah-brand-secondary-color-orange-03: #{color-swatches.$orange-03};
83
+ --utah-brand-secondary-color-orange-04: #{color-swatches.$orange-04};
84
+ --utah-brand-secondary-color-orange-05: #{color-swatches.$orange-05};
85
+
86
+ --utah-brand-secondary-color-yellow-00: #{color-swatches.$yellow-00};
87
+ --utah-brand-secondary-color-yellow-01: #{color-swatches.$yellow-01};
88
+ --utah-brand-secondary-color-yellow-02: #{color-swatches.$yellow-02};
89
+ --utah-brand-secondary-color-yellow-03: #{color-swatches.$yellow-03};
90
+ --utah-brand-secondary-color-yellow-04: #{color-swatches.$yellow-04};
91
+ --utah-brand-secondary-color-yellow-05: #{color-swatches.$yellow-05};
92
+ /* ######## --------------------------------------------- ######## */
93
+ }
94
+
21
95
  #{class-vars.$base-class} {
22
96
  /* color */
23
97
  /* ######## Pick these colors to match your desired style ######## */
24
- --primary-color: #{color-swatches.$red-rock-05};
25
- --primary-color-dark: #{color-swatches.$red-rock-01};
26
- --primary-color-light: #{color-swatches.$red-rock-17};
27
- --gray-on-primary-color: #474747;
28
-
29
- --secondary-color: #{color-swatches.$celadon-blue-05};
30
- --secondary-color-dark: #{color-swatches.$celadon-blue-00};
31
- --secondary-color-light: #{color-swatches.$celadon-blue-17};
98
+ --primary-color: var(--utah-brand-primary-color-blue-medium);
99
+ --primary-color-dark: var(--utah-brand-primary-color-blue-dark);
100
+ --primary-color-light: var(--utah-brand-primary-color-blue-light);
101
+ --gray-on-primary-color: white;
102
+
103
+ --secondary-color: var(--utah-brand-secondary-color-teal-03);
104
+ --secondary-color-dark: var(--utah-brand-secondary-color-teal-05);
105
+ --secondary-color-light: var(--utah-brand-secondary-color-teal-00);
32
106
  --gray-on-secondary-color: #474747;
33
107
 
34
- --accent-color: #{color-swatches.$electric-yellow-05};
35
- --accent-color-dark: #{color-swatches.$electric-yellow-00};
36
- --accent-color-light: #{color-swatches.$electric-yellow-17};
108
+ --accent-color: var(--utah-brand-primary-color-gold-light);
109
+ --accent-color-dark: var(--utah-brand-primary-color-gold-medium);
110
+ --accent-color-light: var(--utah-brand-secondary-color-yellow-00);
37
111
  --gray-on-accent-color: #474747;
38
112
 
39
113
  --form-ele-color: #{color-swatches.$azul-05};
40
114
  --form-ele-color-light: #{color-swatches.$azul-12};
115
+ --form-ele-color-dark: #{color-swatches.$azul-02};
41
116
  --form-ele-disabled-color: #{color-swatches.$neutral-gray-10};
42
117
  --form-ele-placeholder-color: #757575;
43
118
 
44
- /* ######## --------------------------------------------- ######## */
119
+ --header-primary-color: var(--primary-color);
120
+ --header-primary-color-dark: var(--primary-color-dark);
121
+ --header-title-color: var(--utah-brand-primary-color-blue-dark);
122
+ --notifications-drawer-color: var(--form-ele-color);
123
+ --notifications-drawer-color-dark: var(--form-ele-color-dark);
45
124
 
46
125
  --gray-color: #{color-swatches.$neutral-gray-04};
47
126
  --gray-medium-color: #{color-swatches.$neutral-gray-06};
@@ -26,7 +26,7 @@
26
26
  display: inline-block;
27
27
  height: 100%;
28
28
  overflow-y: auto;
29
- padding: var(--spacing);
29
+ padding: 0;
30
30
 
31
31
  &.drawer--right {
32
32
  animation: 200ms ease-in-out 100ms right-in both;
@@ -51,6 +51,9 @@
51
51
  &--selected {
52
52
  display: block;
53
53
  }
54
+ &:focus-visible {
55
+ outline-offset: 2px;
56
+ }
54
57
  }
55
58
  &--vertical {
56
59
  display: flex;
@@ -52,8 +52,11 @@
52
52
  height: 100%;
53
53
  }
54
54
  &__official-site {
55
- font-size: var(--font-size-l);
55
+ font-size: var(--font-size);
56
56
  font-weight: var(--font-weight-semi-bold);
57
+ &-wrapper {
58
+ line-height: var(--spacing);
59
+ }
57
60
  }
58
61
  &__copyright {
59
62
  font-size: var(--font-size-s);
@@ -58,6 +58,7 @@
58
58
  position: relative;
59
59
  input[type="text"] {
60
60
  border-radius: var(--radius-circle);
61
+ margin: 0;
61
62
  padding: var(--spacing-s) 170px var(--spacing-s) var(--spacing-3xl);
62
63
  }
63
64
  }
@@ -5,6 +5,9 @@
5
5
  &.main-menu__outer {
6
6
  position: relative;
7
7
  z-index: 2500;
8
+ &:hover {
9
+ z-index: 4000;
10
+ }
8
11
  }
9
12
  .main-menu {
10
13
  &__wrapper {
@@ -78,7 +81,7 @@
78
81
  content: "";
79
82
  width: 100%;
80
83
  height: var(--spacing-2xs);
81
- background: var(--primary-color);
84
+ background: var(--header-primary-color);
82
85
  display: block;
83
86
  position: absolute;
84
87
  top: 0;
@@ -46,5 +46,13 @@
46
46
  font-size: 1.3rem;
47
47
  }
48
48
  }
49
+ .button.button--solid.button--primary-color {
50
+ background-color: var(--header-primary-color);
51
+ border-color: var(--header-primary-color);
52
+ &:hover {
53
+ background-color: var(--header-primary-color-dark);
54
+ border-color: var(--header-primary-color-dark);
55
+ }
56
+ }
49
57
  }
50
58
  }
@@ -8,9 +8,9 @@
8
8
  border-radius: var(--radius-circle);
9
9
  box-sizing: border-box;
10
10
  color: white;
11
- font-size: var(--font-size-2xs);
11
+ font-size: var(--font-size-xs);
12
12
  font-weight: var(--font-weight-semi-bold);
13
- line-height: var(--font-size-2xs);
13
+ line-height: var(--font-size-xs);
14
14
  min-height: var(--spacing-xs);
15
15
  min-width: var(--spacing-2xs);
16
16
  padding: var(--spacing-3xs) var(--spacing-2xs);
@@ -4,6 +4,9 @@
4
4
  ############ _popup.scss ############
5
5
  */
6
6
  #{class-vars.$base-class} {
7
+ .swatches {
8
+ display: inline-block;
9
+ }
7
10
  .color-family {
8
11
  display: flex;
9
12
  margin: 0 0 var(--spacing-2xs) 0;
@@ -30,8 +33,8 @@
30
33
  }
31
34
  }
32
35
  &__swatch {
33
- width: 20px;
34
- height: 20px;
36
+ width: 94px;
37
+ height: 24px;
35
38
  border: none;
36
39
  border-radius: 0;
37
40
  min-height: auto;
@@ -6,11 +6,11 @@
6
6
  box-sizing: border-box;
7
7
  color: white;
8
8
  display: flex;
9
- font-size: var(--font-size-2xs);
9
+ font-size: var(--font-size-xs);
10
10
  font-weight: var(--font-weight-semi-bold);
11
11
  height: 15px;
12
12
  justify-content: center;
13
- line-height: var(--font-size-2xs);
13
+ line-height: var(--font-size-xs);
14
14
  min-width: 15px;
15
15
  padding: 1px 2px;
16
16
  position: absolute;
@@ -17,9 +17,7 @@
17
17
  display: block;
18
18
  }
19
19
  &-title-wrapper {
20
- font-size: var(--font-size-3xl);
21
- font-weight: 600;
22
- color: var(--gray-medium-color);
20
+
23
21
  display: flex;
24
22
  align-items: center;
25
23
  flex: 1;
@@ -51,8 +49,13 @@
51
49
  }
52
50
  }
53
51
  &__title {
52
+ color: var(--header-title-color);
53
+ font-family: var(--ut-industry-font-family);
54
+ font-size: 2.7rem;
55
+ font-weight: 600;
54
56
  line-height: .8;
55
- color: var(--gray-medium-color);
57
+ margin-top: .4rem;
58
+ white-space: nowrap;
56
59
  }
57
60
  }
58
61
  }
@@ -115,8 +118,8 @@
115
118
  @media screen and (max-width: #{media-size-vars.$media-size-tablet-portrait}) {
116
119
  .utah-design-system {
117
120
  .utds {
118
- &-title-wrapper {
119
- font-size: var(--font-size-xl);
121
+ &-title-wrapper__title {
122
+ font-size: 1.9rem;
120
123
  }
121
124
  }
122
125
  }
@@ -24,10 +24,10 @@
24
24
  &.utah-design-system {
25
25
  transition: opacity 200ms ease;
26
26
  position: absolute;
27
- top: 106px;
27
+ top: 126px;
28
28
  left: 0;
29
29
  width: 100%;
30
- height: calc(100% - 106px);
30
+ height: calc(100% - 126px);
31
31
  z-index: 1000;
32
32
  background-color: transparent;
33
33
  &.main-menu-is-removed {
@@ -82,7 +82,7 @@
82
82
  content: "";
83
83
  width: 100%;
84
84
  height: var(--spacing-2xs);
85
- background: var(--primary-color);
85
+ background: var(--header-primary-color);
86
86
  display: block;
87
87
  position: absolute;
88
88
  bottom: 0;
@@ -0,0 +1,200 @@
1
+ @use "../../1-settings/class-vars";
2
+ @use "../../1-settings/color-swatches.scss";
3
+
4
+ #{class-vars.$base-class} {
5
+ .utds {
6
+ &-notifications-drawer {
7
+ .drawer__inner {
8
+ max-width: 350px;
9
+ color: var(--gray-color);
10
+ background: var(--gray-light-color);
11
+ }
12
+ .drawer__title {
13
+ background: white;
14
+ height: 38px;
15
+ font-size: 1.5rem;
16
+ display: flex;
17
+ align-items: center;
18
+ gap: .5rem;
19
+ box-sizing: content-box;
20
+ }
21
+ .utds-icon-before-alert {
22
+ font-size: 1.2rem;
23
+ }
24
+ &__header-buttons {
25
+ background: var(--gray-light-color);
26
+ display: flex;
27
+ gap: var(--spacing-s);
28
+ padding: var(--spacing);
29
+ border-bottom: 1px solid var(--gray-3-1-contrast);
30
+
31
+ .button {
32
+ padding: 0 var(--spacing);
33
+ }
34
+ }
35
+ a.notifications-settings-button {
36
+ background: var(--gray-color);
37
+ color: white;
38
+ fill: white;
39
+ &:hover {
40
+ background-color: var(--gray-dark-color);
41
+ box-shadow: none;
42
+ color: white;
43
+ fill: white;
44
+ }
45
+ &:focus-visible {
46
+ outline: 2px solid var(--notifications-drawer-color);
47
+ outline-offset: 2px;
48
+ transition: none;
49
+ }
50
+ }
51
+
52
+ .utds-notify-list-item:focus, .utds-notify-list-item:focus-visible, [tabindex]:focus, [tabindex]:focus-visible {
53
+ outline: 3px solid var(--notifications-drawer-color);
54
+ outline-offset: -3px;
55
+ border: none;
56
+ border-bottom: 1px solid var(--gray-3-1-contrast);
57
+ box-shadow: none;
58
+ }
59
+
60
+ .button--primary-color {
61
+ border-color: var(--notifications-drawer-color);
62
+ color: var(--notifications-drawer-color);
63
+ &:hover {
64
+ background-color: var(--notifications-drawer-color);
65
+ color: white;
66
+ }
67
+ }
68
+
69
+ button.button--solid.button--primary-color {
70
+ background-color: var(--notifications-drawer-color);
71
+ border-color: var(--notifications-drawer-color);
72
+ color: white;
73
+ &:hover {
74
+ background-color: var(--notifications-drawer-color-dark);
75
+ border-color: var(--notifications-drawer-color-dark);
76
+ }
77
+ }
78
+ }
79
+
80
+ &-notifications__list {
81
+ margin: 0;
82
+ padding: 0;
83
+ list-style-type: none;
84
+ height: calc(100vh - (55px + 68px));
85
+ overflow: auto;
86
+ overscroll-behavior: contain;
87
+ }
88
+
89
+ &-notify-list-item {
90
+ border-bottom: 1px solid var(--gray-3-1-contrast);
91
+ display: flex;
92
+ flex-direction: column;
93
+ gap: var(--spacing-2xs);
94
+ padding: 0 0 var(--spacing-s) 0;
95
+ background: white;
96
+
97
+ &:focus-visible, &:focus {
98
+ outline: 3px solid var(--notifications-drawer-color);
99
+ outline-offset: -3px;
100
+ }
101
+ &:hover {
102
+ background: var(--gray-light-color);
103
+ cursor: pointer;
104
+ }
105
+
106
+ &__header {
107
+ position: relative;
108
+ display: flex;
109
+ align-items: center;
110
+ justify-content: center;
111
+ gap: var(--spacing-s);
112
+ }
113
+ &__title {
114
+ font-size: var(--font-size-m);
115
+ line-height: 1.1;
116
+ flex: 1;
117
+ font-weight: bold;
118
+ }
119
+ &__status {
120
+ position: absolute;
121
+ top: 4px;
122
+ left: 0;
123
+ height: calc(100% - 4px);
124
+ width: 6px;
125
+ border-top-right-radius: 6px;
126
+ border-bottom-right-radius: 6px;
127
+ background: var(--notifications-drawer-color);
128
+ &--is-read {
129
+ background: transparent;
130
+ font-weight: normal;
131
+ }
132
+ }
133
+ &__icon {
134
+ display: flex;
135
+ justify-content: center;
136
+ align-items: center;
137
+ padding: var(--spacing-s) 0 var(--spacing-s) var(--spacing);
138
+ span {
139
+ font-size: 1.5rem;
140
+ &[class*='error'] {
141
+ color: color-swatches.$red-rock-04;
142
+ }
143
+ &[class*='clock'] {
144
+ color: color-swatches.$aspen-green-04;
145
+ }
146
+ &[class*='info'] {
147
+ color: color-swatches.$azul-04;
148
+ }
149
+ &[class*='help'] {
150
+ color: color-swatches.$neutral-gray-07;
151
+ }
152
+ &[class*='account'] {
153
+ color: color-swatches.$azul-04;
154
+ }
155
+ &[class*='utds-icon-before']::before {
156
+ margin: 0;
157
+ }
158
+ }
159
+ }
160
+ &__time {
161
+ padding: var(--spacing-s) var(--spacing-s) var(--spacing-s) 0;
162
+ color: var(--gray-medium-color);
163
+ }
164
+ &__brand-wrapper {
165
+ display: flex;
166
+ height: 34px;
167
+ }
168
+ &__brand {
169
+ max-height: 35px;
170
+ min-width: 0;
171
+ }
172
+ &__message {
173
+ padding: 0 var(--spacing);
174
+ line-height: 1.3;
175
+ }
176
+ &__footer {
177
+ display: flex;
178
+ align-items: center;
179
+ justify-content: space-between;
180
+ padding: var(--spacing-xs) var(--spacing) 0 var(--spacing);
181
+
182
+ .utds-notify-list-item__link {
183
+ flex: 0 0 auto;
184
+ }
185
+ }
186
+
187
+ &:last-of-type {
188
+ border-bottom: 1px solid var(--gray-3-1-contrast);
189
+ }
190
+
191
+ &--busy-card {
192
+ padding: 3rem 1rem;
193
+ }
194
+
195
+ &--is-read {
196
+ background-color: var(--gray-light-color);
197
+ }
198
+ }
199
+ }
200
+ }