@ethlete/components 1.0.0-next.79 → 1.0.0-next.81

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 (88) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/design/anchored-dialog.ts +98 -0
  3. package/design/button.ts +13 -1
  4. package/design/config.json +6 -1
  5. package/design/dialog.ts +5 -3
  6. package/design/form-field.ts +3 -0
  7. package/design/menu.ts +8 -4
  8. package/design/notification.ts +8 -4
  9. package/design/sdk/components/accordion/accordion.ts +5 -1
  10. package/design/sdk/components/anchored-dialog/anchored-dialog.css +63 -0
  11. package/design/sdk/components/anchored-dialog/anchored-dialog.ts +75 -0
  12. package/design/sdk/components/avatar/avatar.ts +3 -2
  13. package/design/sdk/components/badge/badge.ts +2 -1
  14. package/design/sdk/components/banner/banner.ts +2 -1
  15. package/design/sdk/components/bracket/bracket.ts +2 -1
  16. package/design/sdk/components/breadcrumb/breadcrumb.ts +2 -1
  17. package/design/sdk/components/button/button.css +11 -3
  18. package/design/sdk/components/button/button.ts +17 -4
  19. package/design/sdk/components/calendar/calendar.ts +2 -1
  20. package/design/sdk/components/card/card.ts +2 -1
  21. package/design/sdk/components/carousel/carousel.ts +2 -1
  22. package/design/sdk/components/chart/chart.ts +2 -1
  23. package/design/sdk/components/checkbox/checkbox.css +65 -0
  24. package/design/sdk/components/checkbox/checkbox.ts +180 -0
  25. package/design/sdk/components/chip/chip.ts +2 -1
  26. package/design/sdk/components/copy-button/copy-button.ts +2 -1
  27. package/design/sdk/components/description-list/description-list.ts +2 -1
  28. package/design/sdk/components/dialog/dialog.ts +2 -1
  29. package/design/sdk/components/divider/divider.ts +2 -1
  30. package/design/sdk/components/empty-state/empty-state.ts +2 -1
  31. package/design/sdk/components/grid/grid.ts +3 -2
  32. package/design/sdk/components/input/input.ts +2 -1
  33. package/design/sdk/components/kbd/kbd.ts +2 -1
  34. package/design/sdk/components/loader/loader.ts +2 -1
  35. package/design/sdk/components/masonry/masonry.ts +3 -2
  36. package/design/sdk/components/match/match.ts +2 -1
  37. package/design/sdk/components/menu/menu.ts +19 -7
  38. package/design/sdk/components/notification/notification.ts +2 -1
  39. package/design/sdk/components/otp-input/otp-input.ts +2 -1
  40. package/design/sdk/components/pagination/pagination.ts +2 -1
  41. package/design/sdk/components/picture/picture.ts +2 -1
  42. package/design/sdk/components/progress-steps/progress-steps.ts +2 -1
  43. package/design/sdk/components/query-error/query-error.ts +2 -1
  44. package/design/sdk/components/radio-group/radio-group.css +46 -0
  45. package/design/sdk/components/radio-group/radio-group.ts +167 -0
  46. package/design/sdk/components/scheduler/scheduler.ts +2 -1
  47. package/design/sdk/components/scrollable/scrollable.ts +2 -2
  48. package/design/sdk/components/scrollbar/scrollbar.ts +2 -1
  49. package/design/sdk/components/select/shared/select-part.ts +11 -2
  50. package/design/sdk/components/select-panel/select-panel.ts +2 -1
  51. package/design/sdk/components/skeleton/skeleton.ts +2 -1
  52. package/design/sdk/components/slider/slider.ts +2 -1
  53. package/design/sdk/components/standings/standings.ts +2 -1
  54. package/design/sdk/components/stat-tile/stat-tile.ts +2 -1
  55. package/design/sdk/components/stream/stream.ts +6 -1
  56. package/design/sdk/components/switch/switch.css +4 -2
  57. package/design/sdk/components/switch/switch.ts +2 -2
  58. package/design/sdk/components/table/table.ts +2 -1
  59. package/design/sdk/components/textarea/textarea.ts +4 -3
  60. package/design/sdk/components/timeline/timeline.ts +2 -2
  61. package/design/sdk/components/toolbar/toolbar.ts +2 -1
  62. package/design/sdk/foundations/colors/colors.css +16 -0
  63. package/design/sdk/foundations/colors/colors.ts +1 -1
  64. package/design/sdk/foundations/colors/shared/contrast.ts +1 -1
  65. package/design/sdk/lint-baseline.json +6 -0
  66. package/design/sdk/pictures.json +1195 -0
  67. package/design/sdk/ready.json +64 -0
  68. package/design/sdk/rule-baseline.json +104 -0
  69. package/design/select.ts +9 -5
  70. package/design/textarea.ts +2 -0
  71. package/design/tooltip.ts +5 -5
  72. package/fesm2022/ethlete-components.mjs +1190 -973
  73. package/fesm2022/ethlete-components.mjs.map +1 -1
  74. package/generators/generators.json +2 -0
  75. package/package.json +1 -1
  76. package/src/lib/button/button-properties-styles.component.css +6 -6
  77. package/src/lib/button/button.component.css +11 -7
  78. package/src/lib/button/button.types.ts +33 -0
  79. package/src/lib/button/icon-button.component.css +3 -3
  80. package/src/lib/button/window-control-button.component.css +70 -3
  81. package/src/lib/calendar/calendar.component.css +2 -2
  82. package/src/lib/chip/chip.component.css +4 -4
  83. package/src/lib/focus-ring/focus-ring-styles.component.css +20 -5
  84. package/src/lib/forms/switch/switch.component.css +1 -14
  85. package/src/lib/kbd/kbd.component.css +1 -1
  86. package/src/lib/menu/menu.component.css +2 -2
  87. package/src/lib/notification/notification.component.css +3 -3
  88. package/types/ethlete-components.d.ts +171 -139
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "generators": {
3
3
  "component": {
4
+ "scaffold": true,
4
5
  "factory": "./component/generator",
5
6
  "schema": "./component/schema.json",
6
7
  "description": "Scaffold a component domain following the three-tier architecture (folder layout, headless + default split, styles, spec, stories, docs page, barrel wiring)"
@@ -101,6 +102,7 @@
101
102
  "description": "Remove the spinner determinate and progress bar indeterminate inputs in templates"
102
103
  },
103
104
  "icons": {
105
+ "scaffold": true,
104
106
  "factory": "./icons/generator",
105
107
  "schema": "./icons/schema.json",
106
108
  "description": "Generate etIcon IconDefinitions and typed names from an installed SVG icon source (auto-detects Font Awesome)"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/components",
3
- "version": "1.0.0-next.79",
3
+ "version": "1.0.0-next.81",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ethlete-io/ethdk",
@@ -75,7 +75,7 @@
75
75
  --et-theme-color-primary-opacity: 0;
76
76
 
77
77
  @media (hover: hover) {
78
- &:hover {
78
+ &:not([disabled], [aria-disabled='true']):hover {
79
79
  --et-theme-color-primary-opacity: var(--et-button-variant-opacity-hover-delta);
80
80
  }
81
81
  }
@@ -84,7 +84,7 @@
84
84
  --et-theme-color-primary-opacity: var(--et-button-variant-opacity-focus-delta);
85
85
  }
86
86
 
87
- &:active {
87
+ &:not([disabled], [aria-disabled='true']):active {
88
88
  --et-theme-color-primary-opacity: var(--et-button-variant-opacity-active-delta);
89
89
  }
90
90
  }
@@ -93,7 +93,7 @@
93
93
  --et-theme-color-primary-opacity: 0.16;
94
94
 
95
95
  @media (hover: hover) {
96
- &:hover {
96
+ &:not([disabled], [aria-disabled='true']):hover {
97
97
  --et-theme-color-primary-opacity: calc(0.16 + var(--et-button-variant-opacity-hover-delta));
98
98
  }
99
99
  }
@@ -102,7 +102,7 @@
102
102
  --et-theme-color-primary-opacity: calc(0.16 + var(--et-button-variant-opacity-focus-delta));
103
103
  }
104
104
 
105
- &:active {
105
+ &:not([disabled], [aria-disabled='true']):active {
106
106
  --et-theme-color-primary-opacity: calc(0.16 + var(--et-button-variant-opacity-active-delta));
107
107
  }
108
108
  }
@@ -112,7 +112,7 @@
112
112
  --et-theme-color-primary-opacity: 0.16;
113
113
 
114
114
  @media (hover: hover) {
115
- &:hover {
115
+ &:not([disabled], [aria-disabled='true']):hover {
116
116
  --et-theme-color-primary-opacity: calc(0.16 + var(--et-button-variant-opacity-hover-delta));
117
117
  }
118
118
  }
@@ -121,7 +121,7 @@
121
121
  --et-theme-color-primary-opacity: calc(0.16 + var(--et-button-variant-opacity-focus-delta));
122
122
  }
123
123
 
124
- &:active {
124
+ &:not([disabled], [aria-disabled='true']):active {
125
125
  --et-theme-color-primary-opacity: calc(0.16 + var(--et-button-variant-opacity-active-delta));
126
126
  }
127
127
  }
@@ -103,7 +103,7 @@
103
103
  --_et-button-border-color: var(--et-theme-color-ink-solid);
104
104
 
105
105
  @media (hover: hover) {
106
- &:hover {
106
+ &:not([disabled], [aria-disabled='true']):hover {
107
107
  --et-theme-color-primary-opacity: var(--et-button-variant-opacity-hover-delta);
108
108
  }
109
109
  }
@@ -112,7 +112,7 @@
112
112
  --et-theme-color-primary-opacity: var(--et-button-variant-opacity-focus-delta);
113
113
  }
114
114
 
115
- &:active {
115
+ &:not([disabled], [aria-disabled='true']):active {
116
116
  --et-theme-color-primary-opacity: var(--et-button-variant-opacity-active-delta);
117
117
  }
118
118
 
@@ -137,7 +137,7 @@
137
137
 
138
138
  &:where([data-variant='filled']) {
139
139
  @media (hover: hover) {
140
- &:hover {
140
+ &:not([disabled], [aria-disabled='true']):hover {
141
141
  --et-theme-color-primary-rgb: var(
142
142
  --et-color-primary-active,
143
143
  var(--et-color-primary-focus, var(--et-color-primary-hover, var(--et-color-primary)))
@@ -145,10 +145,10 @@
145
145
  }
146
146
  }
147
147
 
148
- &:active {
148
+ &:not([disabled], [aria-disabled='true']):active {
149
149
  --_et-button-background: color-mix(
150
150
  in srgb,
151
- var(--et-theme-color-primary-solid) 84%,
151
+ var(--et-theme-color-primary-solid) 96%,
152
152
  var(--et-theme-color-on-primary-solid)
153
153
  );
154
154
  }
@@ -161,7 +161,7 @@
161
161
  --_et-button-border-color: transparent;
162
162
 
163
163
  @media (hover: hover) {
164
- &:hover {
164
+ &:not([disabled], [aria-disabled='true']):hover {
165
165
  --et-theme-color-primary-opacity: 1;
166
166
  }
167
167
  }
@@ -170,7 +170,7 @@
170
170
  --et-theme-color-primary-opacity: 1;
171
171
  }
172
172
 
173
- &:active {
173
+ &:not([disabled], [aria-disabled='true']):active {
174
174
  --et-theme-color-primary-opacity: 1;
175
175
  }
176
176
  }
@@ -201,6 +201,10 @@
201
201
  transition: opacity 120ms ease;
202
202
  }
203
203
 
204
+ &:where([data-stretch-contents]) .et-button-contents {
205
+ flex: 1;
206
+ }
207
+
204
208
  &[data-loading='true'] {
205
209
  .et-button-icon,
206
210
  .et-button-contents {
@@ -0,0 +1,33 @@
1
+ export const BUTTON_SIZES = {
2
+ XS: 'xs',
3
+ SM: 'sm',
4
+ MD: 'md',
5
+ LG: 'lg',
6
+ XL: 'xl',
7
+ } as const;
8
+
9
+ export type ButtonSize = (typeof BUTTON_SIZES)[keyof typeof BUTTON_SIZES];
10
+
11
+ export const BUTTON_ICON_ALIGNMENTS = {
12
+ START: 'start',
13
+ END: 'end',
14
+ } as const;
15
+
16
+ export type ButtonIconAlignment = (typeof BUTTON_ICON_ALIGNMENTS)[keyof typeof BUTTON_ICON_ALIGNMENTS];
17
+
18
+ export const BUTTON_VARIANTS = {
19
+ FILLED: 'filled',
20
+ OUTLINE: 'outline',
21
+ TONAL: 'tonal',
22
+ TRANSPARENT: 'transparent',
23
+ } as const;
24
+
25
+ export type ButtonVariant = (typeof BUTTON_VARIANTS)[keyof typeof BUTTON_VARIANTS];
26
+
27
+ export const BUTTON_SPINNER_CONFIG: Record<ButtonSize, { diameter: number; strokeWidth: number }> = {
28
+ xs: { diameter: 12, strokeWidth: 1.5 },
29
+ sm: { diameter: 14, strokeWidth: 1.75 },
30
+ md: { diameter: 16, strokeWidth: 2 },
31
+ lg: { diameter: 20, strokeWidth: 2.5 },
32
+ xl: { diameter: 24, strokeWidth: 3 },
33
+ };
@@ -85,7 +85,7 @@
85
85
  box-shadow: var(--et-button-shadow, none);
86
86
 
87
87
  @media (hover: hover) {
88
- &:hover {
88
+ &:not([disabled], [aria-disabled='true']):hover {
89
89
  --et-theme-color-primary-opacity: 1;
90
90
  --et-theme-color-primary-rgb: var(
91
91
  --et-color-primary-active,
@@ -98,10 +98,10 @@
98
98
  --et-theme-color-primary-opacity: calc(1 - var(--et-button-variant-opacity-focus-delta));
99
99
  }
100
100
 
101
- &:active {
101
+ &:not([disabled], [aria-disabled='true']):active {
102
102
  --_et-icon-button-background: color-mix(
103
103
  in srgb,
104
- var(--et-theme-color-primary-solid) 84%,
104
+ var(--et-theme-color-primary-solid) 96%,
105
105
  var(--et-theme-color-on-primary-solid)
106
106
  );
107
107
  }
@@ -64,6 +64,27 @@
64
64
  --_et-window-control-button-icon-size: 1.8rem;
65
65
  }
66
66
 
67
+ &:where([data-shape='round']) {
68
+ --et-theme-color-primary-opacity: 0.1;
69
+ --_et-window-control-button-fallback-background: rgba(255, 255, 255, 0.1);
70
+ --_et-window-control-button-border-radius: 50%;
71
+ }
72
+
73
+ &:where([data-shape='round'][data-size='sm']) {
74
+ --_et-window-control-button-size: 2rem;
75
+ --_et-window-control-button-icon-size: 1.2rem;
76
+ }
77
+
78
+ &:where([data-shape='round'][data-size='md']) {
79
+ --_et-window-control-button-size: 2.4rem;
80
+ --_et-window-control-button-icon-size: 1.6rem;
81
+ }
82
+
83
+ &:where([data-shape='round'][data-size='lg']) {
84
+ --_et-window-control-button-size: 2.8rem;
85
+ --_et-window-control-button-icon-size: 1.8rem;
86
+ }
87
+
67
88
  @media (hover: hover) {
68
89
  &:hover {
69
90
  --et-theme-color-primary-opacity: 0.14;
@@ -103,19 +124,65 @@
103
124
  }
104
125
  }
105
126
 
106
- &:where([data-kind='close']):focus-visible {
127
+ &:where([data-shape='round']) {
128
+ @media (hover: hover) {
129
+ &:hover {
130
+ --et-theme-color-primary-opacity: 0.15;
131
+ --_et-window-control-button-fallback-background: rgba(255, 255, 255, 0.15);
132
+ }
133
+ }
134
+
135
+ &:focus-visible {
136
+ --et-theme-color-primary-opacity: 0.15;
137
+ --_et-window-control-button-fallback-background: rgba(255, 255, 255, 0.15);
138
+ }
139
+
140
+ &:active {
141
+ --et-theme-color-primary-opacity: 0.3;
142
+ --_et-window-control-button-fallback-background: rgba(255, 255, 255, 0.3);
143
+ }
144
+ }
145
+
146
+ &:where([data-shape='caption']) {
147
+ --_et-window-control-button-border-radius: 0;
148
+ --_et-window-control-button-icon-size: 10px;
149
+
150
+ width: 46px;
151
+ height: 100%;
152
+
153
+ @media (hover: hover) {
154
+ &:hover {
155
+ --et-theme-color-primary-opacity: 0.06;
156
+ --_et-window-control-button-fallback-background: rgba(255, 255, 255, 0.06);
157
+ }
158
+ }
159
+
160
+ &:focus-visible {
161
+ --et-theme-color-primary-opacity: 0.06;
162
+ --_et-window-control-button-fallback-background: rgba(255, 255, 255, 0.06);
163
+
164
+ outline-offset: -2px;
165
+ }
166
+
167
+ &:active {
168
+ --et-theme-color-primary-opacity: 0.04;
169
+ --_et-window-control-button-fallback-background: rgba(255, 255, 255, 0.04);
170
+ }
171
+ }
172
+
173
+ &:where([data-kind='close']:not([data-shape='round'])):focus-visible {
107
174
  background: var(--et-window-control-button-close-background, rgba(232, 17, 35, 0.92));
108
175
  color: var(--et-window-control-button-close-color, #ffffff);
109
176
  }
110
177
 
111
178
  @media (hover: hover) {
112
- &:where([data-kind='close']):hover {
179
+ &:where([data-kind='close']:not([data-shape='round'])):hover {
113
180
  background: var(--et-window-control-button-close-background, rgba(232, 17, 35, 0.92));
114
181
  color: var(--et-window-control-button-close-color, #ffffff);
115
182
  }
116
183
  }
117
184
 
118
- &:where([data-kind='close']):active {
185
+ &:where([data-kind='close']:not([data-shape='round'])):active {
119
186
  background: var(--et-window-control-button-close-background-active, rgba(196, 14, 29, 0.96));
120
187
  color: var(--et-window-control-button-close-color, #ffffff);
121
188
  }
@@ -38,12 +38,12 @@
38
38
  -webkit-tap-highlight-color: transparent;
39
39
 
40
40
  @media (hover: hover) {
41
- &:hover {
41
+ &:not([disabled], [aria-disabled='true']):hover {
42
42
  background: color-mix(in srgb, var(--et-surface-interaction-solid) 12%, transparent);
43
43
  }
44
44
  }
45
45
 
46
- &:active {
46
+ &:not([disabled], [aria-disabled='true']):active {
47
47
  background: color-mix(in srgb, var(--et-surface-interaction-solid) 22%, transparent);
48
48
  }
49
49
 
@@ -74,7 +74,7 @@
74
74
  color 120ms ease;
75
75
 
76
76
  @media (hover: hover) {
77
- &:hover:not([aria-checked='true']):not([data-readonly]) {
77
+ &:hover:not([aria-checked='true'], [data-readonly], [data-disabled]) {
78
78
  background: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 22%, transparent);
79
79
  }
80
80
  }
@@ -99,7 +99,7 @@
99
99
  box-shadow: inset 0 0 0 1px light-dark(var(--et-theme-color-ink-solid), transparent);
100
100
 
101
101
  @media (hover: hover) {
102
- &:hover:not([data-readonly]) {
102
+ &:hover:not([data-readonly], [data-disabled]) {
103
103
  background: color-mix(in srgb, var(--et-theme-color-primary-solid, currentColor) 24%, transparent);
104
104
  }
105
105
  }
@@ -138,13 +138,13 @@
138
138
  color 120ms ease;
139
139
 
140
140
  @media (hover: hover) {
141
- &:hover {
141
+ &:not([disabled]):hover {
142
142
  background: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 20%, transparent);
143
143
  color: var(--et-surface-color-solid, currentColor);
144
144
  }
145
145
  }
146
146
 
147
- &:active {
147
+ &:not([disabled]):active {
148
148
  background: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 28%, transparent);
149
149
  }
150
150
 
@@ -1,10 +1,25 @@
1
1
  @layer components {
2
+ @property --et-focus-ring-offset {
3
+ syntax: '*';
4
+ inherits: false;
5
+ }
6
+
7
+ @property --et-focus-ring-width {
8
+ syntax: '*';
9
+ inherits: false;
10
+ }
11
+
12
+ @property --et-focus-ring-color {
13
+ syntax: '*';
14
+ inherits: false;
15
+ }
16
+
2
17
  .et-focus-ring {
3
- --_et-focus-ring-offset: 3px;
4
- --_et-focus-ring-width: 2px;
5
- --_et-focus-ring-color: light-dark(
6
- var(--et-theme-color-ink-solid, currentColor),
7
- var(--et-theme-color-primary-solid, currentColor)
18
+ --_et-focus-ring-offset: var(--et-focus-ring-offset, 3px);
19
+ --_et-focus-ring-width: var(--et-focus-ring-width, 2px);
20
+ --_et-focus-ring-color: var(
21
+ --et-focus-ring-color,
22
+ light-dark(var(--et-theme-color-ink-solid, currentColor), var(--et-theme-color-primary-solid, currentColor))
8
23
  );
9
24
  outline: var(--_et-focus-ring-width) solid transparent;
10
25
  outline-offset: var(--_et-focus-ring-offset);
@@ -58,20 +58,7 @@
58
58
  width: var(--et-switch-track-width);
59
59
  height: var(--et-switch-track-height);
60
60
  border-radius: calc(var(--et-switch-track-height) / 2);
61
- background-color: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 22%, transparent);
62
- box-shadow: inset 0 0 0 1px var(--et-surface-interaction-solid);
63
- }
64
-
65
- /* hover-capable pointers only — on touch, :hover sticks after a tap */
66
- @media (hover: hover) {
67
- &:hover:not([aria-disabled='true']):not([data-readonly]):not([aria-checked='true']):not([data-indeterminate])
68
- .et-switch-track,
69
- :where(et-choice-field:has(.et-choice-field-label-area:hover))
70
- &:not([aria-disabled='true']):not([data-readonly]):not([aria-checked='true']):not([data-indeterminate])
71
- .et-switch-track {
72
- background-color: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 30%, transparent);
73
- box-shadow: inset 0 0 0 1px var(--et-surface-interaction-hover-solid);
74
- }
61
+ background-color: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 38%, transparent);
75
62
  }
76
63
 
77
64
  :where(et-choice-field[data-error])
@@ -52,7 +52,7 @@
52
52
  border: 1px solid var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
53
53
  border-radius: var(--et-kbd-key-border-radius);
54
54
  background: color-mix(in srgb, var(--et-surface-interaction-solid, rgb(255 255 255)) 8%, transparent);
55
- color: var(--et-surface-color-muted-solid, rgb(255 255 255 / 0.55));
55
+ color: var(--et-kbd-color, var(--et-surface-color-muted-solid, rgb(255 255 255 / 0.55)));
56
56
  font: inherit;
57
57
  font-size: var(--et-kbd-font-size);
58
58
  font-weight: var(--et-kbd-font-weight);
@@ -245,7 +245,7 @@
245
245
  color 120ms ease,
246
246
  opacity 120ms ease;
247
247
 
248
- &[data-active]:focus-visible {
248
+ &[data-active]:where([data-active-source='keyboard']):focus-visible {
249
249
  outline: 2px solid var(--et-theme-color-ink-solid);
250
250
  outline-offset: -2px;
251
251
  }
@@ -254,7 +254,7 @@
254
254
  of [data-active] alone) keeps the highlight from appearing without a hover or keyboard
255
255
  interaction; a trigger whose submenu is open stays highlighted the whole time, and an item
256
256
  activated from the keyboard keeps its highlight while the menu fades out */
257
- &[data-active]:where(:focus-visible),
257
+ &[data-active]:where([data-active-source='keyboard']:focus-visible),
258
258
  &[data-highlight-held],
259
259
  &[data-menu-open] {
260
260
  background: var(--_et-menu-item-active-background);
@@ -105,7 +105,7 @@
105
105
  min-width: var(--et-notification-min-width);
106
106
  max-width: var(--et-notification-max-width);
107
107
  border-inline-start: var(--et-notification-border-width) solid var(--et-theme-color-primary-solid, #d1d5db);
108
- font-family: inherit;
108
+ font-family: var(--et-font-family, inherit);
109
109
  font-size: var(--et-notification-font-size);
110
110
  line-height: var(--et-notification-line-height);
111
111
 
@@ -205,12 +205,12 @@
205
205
 
206
206
  .et-notification-dismiss-btn {
207
207
  flex-shrink: 0;
208
- opacity: 0.4;
208
+ opacity: 0.75;
209
209
  transition: opacity 120ms ease;
210
210
 
211
211
  @media (hover: hover) {
212
212
  &:hover {
213
- opacity: 0.8;
213
+ opacity: 1;
214
214
  }
215
215
  }
216
216
  }