@entur/menu 4.1.18 → 4.1.20

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 (3) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/styles.css +338 -338
  3. package/package.json +10 -10
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.1.20](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.17...@entur/menu@4.1.20) (2022-12-09)
7
+
8
+ **Note:** Version bump only for package @entur/menu
9
+
10
+ ## [4.1.19](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.18...@entur/menu@4.1.19) (2022-11-24)
11
+
12
+ **Note:** Version bump only for package @entur/menu
13
+
6
14
  ## [4.1.18](https://bitbucket.org/enturas/design-system/compare/@entur/menu@4.1.17...@entur/menu@4.1.18) (2022-10-31)
7
15
 
8
16
  **Note:** Version bump only for package @entur/menu
package/dist/styles.css CHANGED
@@ -57,6 +57,225 @@
57
57
  font-weight: 600;
58
58
  }/* DO NOT CHANGE!*/
59
59
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
60
+ /* DO NOT CHANGE!*/
61
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
62
+ .eds-side-navigation,
63
+ .eds-side-navigation-group {
64
+ --primary-background-color: #f8f8f8;
65
+ --primary-text-color: #181c56;
66
+ }
67
+ .eds-contrast .eds-side-navigation,
68
+ .eds-contrast .eds-side-navigation-group {
69
+ --primary-background-color: #181c56;
70
+ --primary-text-color: colors-brand-white;
71
+ }
72
+
73
+ .eds-side-navigation__click-target svg {
74
+ margin-right: 1rem;
75
+ color: #656782;
76
+ display: inline-flex;
77
+ align-self: center;
78
+ position: relative;
79
+ top: 0.075em;
80
+ }
81
+ .eds-contrast .eds-side-navigation__click-target svg {
82
+ color: #aeb7e2;
83
+ }
84
+
85
+ .eds-side-navigation__click-target[disabled] svg {
86
+ color: #656782;
87
+ }
88
+
89
+ .eds-side-navigation {
90
+ --padding-vertical: 1rem;
91
+ --padding-horizontal: 2.5rem;
92
+ background-color: var(--primary-background-color);
93
+ color: var(--primary-text-color);
94
+ padding: 0;
95
+ margin: 0;
96
+ list-style: none;
97
+ position: relative;
98
+ transition: max-width ease-in-out 0.2s;
99
+ }
100
+ .eds-side-navigation__collapse-button {
101
+ position: absolute;
102
+ right: -0.75rem;
103
+ height: 1.5rem;
104
+ width: 1.5rem;
105
+ border-radius: 50%;
106
+ cursor: pointer;
107
+ background: #ffffff;
108
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
109
+ border: 0.0625rem solid #d1d3d3;
110
+ color: inherit;
111
+ padding: 0;
112
+ display: flex;
113
+ align-items: center;
114
+ justify-content: center;
115
+ border: none;
116
+ z-index: 10;
117
+ }
118
+ .eds-contrast .eds-side-navigation__collapse-button {
119
+ background: #393d79;
120
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
121
+ border-color: transparent;
122
+ }
123
+ .eds-side-navigation__collapse-button svg {
124
+ margin: 0;
125
+ top: 0;
126
+ color: #181c56;
127
+ }
128
+ .eds-contrast .eds-side-navigation__collapse-button svg {
129
+ color: #ffffff;
130
+ }
131
+ .eds-side-navigation__collapse-button:focus {
132
+ outline: 2px solid #181c56;
133
+ }
134
+ .eds-contrast .eds-side-navigation__collapse-button:focus {
135
+ outline: 2px solid #ffffff;
136
+ }
137
+ @media screen and (min-width: 50rem) {
138
+ .eds-side-navigation {
139
+ max-width: 26rem;
140
+ }
141
+ }
142
+ .eds-side-navigation--small {
143
+ --padding-vertical: calc(0.5rem + 0.1875rem);
144
+ }
145
+ .eds-side-navigation .eds-side-navigation {
146
+ background-color: #f3f3f3;
147
+ }
148
+ .eds-contrast .eds-side-navigation .eds-side-navigation {
149
+ background-color: #292b6a;
150
+ }
151
+ .eds-side-navigation--collapsed {
152
+ max-width: 80px;
153
+ }
154
+
155
+ .eds-side-navigation .eds-side-navigation .eds-side-navigation__click-target {
156
+ padding-left: 3.5rem;
157
+ box-shadow: none;
158
+ }
159
+ .eds-side-navigation .eds-side-navigation .eds-side-navigation__click-target--active {
160
+ background-color: #d1d4e3;
161
+ }
162
+ .eds-contrast .eds-side-navigation .eds-side-navigation .eds-side-navigation__click-target--active {
163
+ background-color: #54568c;
164
+ }
165
+
166
+ .eds-side-navigation__click-target {
167
+ -webkit-appearance: none;
168
+ -moz-appearance: none;
169
+ appearance: none;
170
+ background: none;
171
+ border: 0;
172
+ border-bottom: 0.125rem solid #e9e9e9;
173
+ border-radius: 0;
174
+ color: var(--primary-text-color);
175
+ cursor: pointer;
176
+ display: block;
177
+ font-family: inherit;
178
+ font-size: inherit;
179
+ font-weight: 500;
180
+ line-height: inherit;
181
+ padding: var(--padding-vertical) 2.5rem;
182
+ padding-left: 2.5rem;
183
+ transition: padding 0.2s ease-in-out;
184
+ text-align: left;
185
+ text-decoration: none;
186
+ width: 100%;
187
+ }
188
+ .eds-contrast .eds-side-navigation__click-target {
189
+ border-color: #292b6a;
190
+ }
191
+ .eds-side-navigation--collapsed .eds-side-navigation__click-target {
192
+ padding-left: 2rem;
193
+ }
194
+ .eds-side-navigation__click-target--active {
195
+ box-shadow: inset 0.25rem 0 0 #181c56;
196
+ font-weight: 600;
197
+ }
198
+ .eds-contrast .eds-side-navigation__click-target--active {
199
+ box-shadow: inset 0.25rem 0 0 #ff5959;
200
+ }
201
+ .eds-side-navigation__click-target[disabled] {
202
+ cursor: not-allowed;
203
+ color: #656782;
204
+ }
205
+ .eds-side-navigation__click-target:not([disabled]):hover {
206
+ background-color: #d1d4e3;
207
+ }
208
+ .eds-contrast .eds-side-navigation__click-target:not([disabled]):hover {
209
+ background-color: #393d79;
210
+ }
211
+ .eds-side-navigation__click-target:not([disabled]):active, .eds-side-navigation__click-target:not([disabled]):focus {
212
+ outline: 2px solid #181c56;
213
+ outline-offset: -2px;
214
+ background: #ebebf1;
215
+ }
216
+ .eds-contrast .eds-side-navigation__click-target:not([disabled]):active, .eds-contrast .eds-side-navigation__click-target:not([disabled]):focus {
217
+ background-color: #54568c;
218
+ outline: 2px solid #ffffff;
219
+ }
220
+
221
+ .eds-side-navigation-group {
222
+ background-color: var(--primary-background-color);
223
+ color: var(--primary-text-color);
224
+ }
225
+ .eds-side-navigation-group + .eds-side-navigation-group {
226
+ padding-top: 0.5rem;
227
+ }
228
+ @media screen and (min-width: 50rem) {
229
+ .eds-side-navigation-group {
230
+ max-width: 26rem;
231
+ }
232
+ }
233
+
234
+ .eds-side-navigation-group__trigger {
235
+ align-items: center;
236
+ -webkit-appearance: none;
237
+ -moz-appearance: none;
238
+ appearance: none;
239
+ background: none;
240
+ border: none;
241
+ border-radius: 0;
242
+ border-bottom: 0.125rem solid #e9e9e9;
243
+ color: #656782;
244
+ cursor: pointer;
245
+ display: flex;
246
+ font-size: 0.875rem;
247
+ font-family: inherit;
248
+ font-weight: 500;
249
+ height: 3rem;
250
+ justify-content: space-between;
251
+ letter-spacing: 1px;
252
+ line-height: 1.25rem;
253
+ padding: 0.75rem 0 0.75rem 2.5rem;
254
+ margin: 0;
255
+ text-transform: uppercase;
256
+ transition: padding 0.2s ease-in-out;
257
+ width: 100%;
258
+ }
259
+ .eds-contrast .eds-side-navigation-group__trigger {
260
+ color: #aeb7e2;
261
+ border-color: #292b6a;
262
+ }
263
+ .eds-side-navigation-group__trigger-icon {
264
+ margin-right: 0.75rem;
265
+ }
266
+ .eds-side-navigation-group__trigger .eds-side-navigation-group__expand-icon {
267
+ margin-right: 2.5rem;
268
+ }
269
+ .eds-side-navigation--collapsed .eds-side-navigation-group__trigger {
270
+ padding-left: 2rem;
271
+ }
272
+ .eds-side-navigation-group__trigger:focus {
273
+ outline: 2px solid #181c56;
274
+ }
275
+ .eds-contrast .eds-side-navigation-group__trigger:focus {
276
+ outline: 2px solid #ffffff;
277
+ }/* DO NOT CHANGE!*/
278
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
60
279
  .eds-top-navigation-item {
61
280
  --show-active-line: 0;
62
281
  display: inline-block;
@@ -106,34 +325,131 @@
106
325
  width: 2rem;
107
326
  }/* DO NOT CHANGE!*/
108
327
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
109
- .eds-stepper {
110
- display: flex;
111
- flex-direction: row;
112
- }
113
- .eds-stepper__item__container {
114
- cursor: pointer;
115
- font-family: inherit;
116
- text-transform: none;
328
+ .eds-overflow-menu__item {
117
329
  -webkit-appearance: none;
118
330
  -moz-appearance: none;
119
331
  appearance: none;
120
- background: none;
121
332
  border: none;
122
- margin: 0;
123
- padding: 0;
124
- align-items: inherit;
125
- display: flex;
126
- flex-grow: 1;
127
- flex-basis: 0;
128
- flex-direction: column;
129
- margin-left: 0.25rem;
333
+ font-size: 0.875rem;
334
+ font-family: inherit;
335
+ color: var(--primary-text-color);
336
+ background: #f8f8f8;
337
+ display: block;
338
+ height: 3rem;
339
+ cursor: pointer;
340
+ width: 100%;
341
+ line-height: 1.375rem;
342
+ text-align: left;
343
+ padding: 0.75rem 1rem;
344
+ opacity: 1;
130
345
  }
131
- .eds-stepper__item__container--non-interactive {
132
- cursor: default;
346
+ .eds-contrast .eds-overflow-menu__item {
347
+ color: #181c56;
133
348
  }
134
- .eds-stepper__item__container:focus {
135
- outline-offset: 0.125rem;
136
- outline: none;
349
+ .eds-overflow-menu__item.eds-overflow-menu__item--disabled {
350
+ background: #e9e9e9;
351
+ color: #949494;
352
+ }
353
+ .eds-contrast .eds-overflow-menu__item.eds-overflow-menu__item--disabled {
354
+ background: #e9e9e9;
355
+ color: #949494;
356
+ }
357
+ .eds-overflow-menu__item.eds-overflow-menu__item--disabled:hover {
358
+ cursor: not-allowed;
359
+ background: #e9e9e9;
360
+ color: #949494;
361
+ }
362
+ .eds-overflow-menu__item .eds-icon {
363
+ margin-right: 0.75rem;
364
+ }
365
+ .eds-overflow-menu__item:hover, .eds-overflow-menu__item:focus, .eds-overflow-menu__item[data-selected] {
366
+ background: #d1d4e3;
367
+ }
368
+ .eds-overflow-menu__item:focus {
369
+ outline: none;
370
+ }
371
+
372
+ .eds-overflow-menu__item + .eds-overflow-menu__item {
373
+ border-top: 0.0625rem solid #e9e9e9;
374
+ }
375
+
376
+ .eds-overflow-menu__menu-list[data-reach-menu-list] {
377
+ border: 0.0625rem solid #e9e9e9;
378
+ border-radius: 0.25rem;
379
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
380
+ overflow: hidden;
381
+ }
382
+ .eds-overflow-menu__menu-list[data-reach-menu-list]:focus {
383
+ outline: none;
384
+ }
385
+ .eds-overflow-menu__menu-list[data-reach-menu-list].eds-contrast {
386
+ box-shadow: 0 0.0625rem 0.1875rem #393d79;
387
+ }
388
+
389
+ .eds-overflow-menu__menu-list[data-reach-menu-list],
390
+ .eds-overflow-menu__menu-list[data-reach-menu-items] {
391
+ -webkit-animation: slide-in 0.2s ease-in-out;
392
+ animation: slide-in 0.2s ease-in-out;
393
+ }
394
+
395
+ @-webkit-keyframes slide-in {
396
+ 0% {
397
+ opacity: 0;
398
+ transform: translateY(0.5rem);
399
+ }
400
+ 100% {
401
+ opacity: 1;
402
+ transform: translateY(0);
403
+ }
404
+ }
405
+
406
+ @keyframes slide-in {
407
+ 0% {
408
+ opacity: 0;
409
+ transform: translateY(0.5rem);
410
+ }
411
+ 100% {
412
+ opacity: 1;
413
+ transform: translateY(0);
414
+ }
415
+ }
416
+ [data-reach-menu-popover] {
417
+ position: absolute;
418
+ z-index: 30;
419
+ }
420
+ [data-reach-menu-popover] .eds-overflow-menu__menu-list--left {
421
+ position: relative;
422
+ right: calc(100% - 2rem);
423
+ }/* DO NOT CHANGE!*/
424
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
425
+ .eds-stepper {
426
+ display: flex;
427
+ flex-direction: row;
428
+ }
429
+ .eds-stepper__item__container {
430
+ cursor: pointer;
431
+ font-family: inherit;
432
+ text-transform: none;
433
+ -webkit-appearance: none;
434
+ -moz-appearance: none;
435
+ appearance: none;
436
+ background: none;
437
+ border: none;
438
+ margin: 0;
439
+ padding: 0;
440
+ align-items: inherit;
441
+ display: flex;
442
+ flex-grow: 1;
443
+ flex-basis: 0;
444
+ flex-direction: column;
445
+ margin-left: 0.25rem;
446
+ }
447
+ .eds-stepper__item__container--non-interactive {
448
+ cursor: default;
449
+ }
450
+ .eds-stepper__item__container:focus {
451
+ outline-offset: 0.125rem;
452
+ outline: none;
137
453
  box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
138
454
  }
139
455
  .eds-contrast .eds-stepper__item__container:focus {
@@ -379,320 +695,4 @@
379
695
  -webkit-appearance: none;
380
696
  appearance: none;
381
697
  margin: 0;
382
- }/* DO NOT CHANGE!*/
383
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
384
- /* DO NOT CHANGE!*/
385
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
386
- .eds-side-navigation,
387
- .eds-side-navigation-group {
388
- --primary-background-color: #f8f8f8;
389
- --primary-text-color: #181c56;
390
- }
391
- .eds-contrast .eds-side-navigation,
392
- .eds-contrast .eds-side-navigation-group {
393
- --primary-background-color: #181c56;
394
- --primary-text-color: colors-brand-white;
395
- }
396
-
397
- .eds-side-navigation__click-target svg {
398
- margin-right: 1rem;
399
- color: #656782;
400
- display: inline-flex;
401
- align-self: center;
402
- position: relative;
403
- top: 0.075em;
404
- }
405
- .eds-contrast .eds-side-navigation__click-target svg {
406
- color: #aeb7e2;
407
- }
408
-
409
- .eds-side-navigation__click-target[disabled] svg {
410
- color: #656782;
411
- }
412
-
413
- .eds-side-navigation {
414
- --padding-vertical: 1rem;
415
- --padding-horizontal: 2.5rem;
416
- background-color: var(--primary-background-color);
417
- color: var(--primary-text-color);
418
- padding: 0;
419
- margin: 0;
420
- list-style: none;
421
- position: relative;
422
- transition: max-width ease-in-out 0.2s;
423
- }
424
- .eds-side-navigation__collapse-button {
425
- position: absolute;
426
- right: -0.75rem;
427
- height: 1.5rem;
428
- width: 1.5rem;
429
- border-radius: 50%;
430
- cursor: pointer;
431
- background: #ffffff;
432
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
433
- border: 0.0625rem solid #d1d3d3;
434
- color: inherit;
435
- padding: 0;
436
- display: flex;
437
- align-items: center;
438
- justify-content: center;
439
- border: none;
440
- z-index: 10;
441
- }
442
- .eds-contrast .eds-side-navigation__collapse-button {
443
- background: #393d79;
444
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
445
- border-color: transparent;
446
- }
447
- .eds-side-navigation__collapse-button svg {
448
- margin: 0;
449
- top: 0;
450
- color: #181c56;
451
- }
452
- .eds-contrast .eds-side-navigation__collapse-button svg {
453
- color: #ffffff;
454
- }
455
- .eds-side-navigation__collapse-button:focus {
456
- outline: 2px solid #181c56;
457
- }
458
- .eds-contrast .eds-side-navigation__collapse-button:focus {
459
- outline: 2px solid #ffffff;
460
- }
461
- @media screen and (min-width: 50rem) {
462
- .eds-side-navigation {
463
- max-width: 26rem;
464
- }
465
- }
466
- .eds-side-navigation--small {
467
- --padding-vertical: calc(0.5rem + 0.1875rem);
468
- }
469
- .eds-side-navigation .eds-side-navigation {
470
- background-color: #f3f3f3;
471
- }
472
- .eds-contrast .eds-side-navigation .eds-side-navigation {
473
- background-color: #292b6a;
474
- }
475
- .eds-side-navigation--collapsed {
476
- max-width: 80px;
477
- }
478
-
479
- .eds-side-navigation .eds-side-navigation .eds-side-navigation__click-target {
480
- padding-left: 3.5rem;
481
- box-shadow: none;
482
- }
483
- .eds-side-navigation .eds-side-navigation .eds-side-navigation__click-target--active {
484
- background-color: #d1d4e3;
485
- }
486
- .eds-contrast .eds-side-navigation .eds-side-navigation .eds-side-navigation__click-target--active {
487
- background-color: #54568c;
488
- }
489
-
490
- .eds-side-navigation__click-target {
491
- -webkit-appearance: none;
492
- -moz-appearance: none;
493
- appearance: none;
494
- background: none;
495
- border: 0;
496
- border-bottom: 0.125rem solid #e9e9e9;
497
- border-radius: 0;
498
- color: var(--primary-text-color);
499
- cursor: pointer;
500
- display: block;
501
- font-family: inherit;
502
- font-size: inherit;
503
- font-weight: 500;
504
- line-height: inherit;
505
- padding: var(--padding-vertical) 2.5rem;
506
- padding-left: 2.5rem;
507
- transition: padding 0.2s ease-in-out;
508
- text-align: left;
509
- text-decoration: none;
510
- width: 100%;
511
- }
512
- .eds-contrast .eds-side-navigation__click-target {
513
- border-color: #292b6a;
514
- }
515
- .eds-side-navigation--collapsed .eds-side-navigation__click-target {
516
- padding-left: 2rem;
517
- }
518
- .eds-side-navigation__click-target--active {
519
- box-shadow: inset 0.25rem 0 0 #181c56;
520
- font-weight: 600;
521
- }
522
- .eds-contrast .eds-side-navigation__click-target--active {
523
- box-shadow: inset 0.25rem 0 0 #ff5959;
524
- }
525
- .eds-side-navigation__click-target[disabled] {
526
- cursor: not-allowed;
527
- color: #656782;
528
- }
529
- .eds-side-navigation__click-target:not([disabled]):hover {
530
- background-color: #d1d4e3;
531
- }
532
- .eds-contrast .eds-side-navigation__click-target:not([disabled]):hover {
533
- background-color: #393d79;
534
- }
535
- .eds-side-navigation__click-target:not([disabled]):active, .eds-side-navigation__click-target:not([disabled]):focus {
536
- outline: 2px solid #181c56;
537
- outline-offset: -2px;
538
- background: #ebebf1;
539
- }
540
- .eds-contrast .eds-side-navigation__click-target:not([disabled]):active, .eds-contrast .eds-side-navigation__click-target:not([disabled]):focus {
541
- background-color: #54568c;
542
- outline: 2px solid #ffffff;
543
- }
544
-
545
- .eds-side-navigation-group {
546
- background-color: var(--primary-background-color);
547
- color: var(--primary-text-color);
548
- }
549
- .eds-side-navigation-group + .eds-side-navigation-group {
550
- padding-top: 0.5rem;
551
- }
552
- @media screen and (min-width: 50rem) {
553
- .eds-side-navigation-group {
554
- max-width: 26rem;
555
- }
556
- }
557
-
558
- .eds-side-navigation-group__trigger {
559
- align-items: center;
560
- -webkit-appearance: none;
561
- -moz-appearance: none;
562
- appearance: none;
563
- background: none;
564
- border: none;
565
- border-radius: 0;
566
- border-bottom: 0.125rem solid #e9e9e9;
567
- color: #656782;
568
- cursor: pointer;
569
- display: flex;
570
- font-size: 0.875rem;
571
- font-family: inherit;
572
- font-weight: 500;
573
- height: 3rem;
574
- justify-content: space-between;
575
- letter-spacing: 1px;
576
- line-height: 1.25rem;
577
- padding: 0.75rem 0 0.75rem 2.5rem;
578
- margin: 0;
579
- text-transform: uppercase;
580
- transition: padding 0.2s ease-in-out;
581
- width: 100%;
582
- }
583
- .eds-contrast .eds-side-navigation-group__trigger {
584
- color: #aeb7e2;
585
- border-color: #292b6a;
586
- }
587
- .eds-side-navigation-group__trigger-icon {
588
- margin-right: 0.75rem;
589
- }
590
- .eds-side-navigation-group__trigger .eds-side-navigation-group__expand-icon {
591
- margin-right: 2.5rem;
592
- }
593
- .eds-side-navigation--collapsed .eds-side-navigation-group__trigger {
594
- padding-left: 2rem;
595
- }
596
- .eds-side-navigation-group__trigger:focus {
597
- outline: 2px solid #181c56;
598
- }
599
- .eds-contrast .eds-side-navigation-group__trigger:focus {
600
- outline: 2px solid #ffffff;
601
- }/* DO NOT CHANGE!*/
602
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
603
- .eds-overflow-menu__item {
604
- -webkit-appearance: none;
605
- -moz-appearance: none;
606
- appearance: none;
607
- border: none;
608
- font-size: 0.875rem;
609
- font-family: inherit;
610
- color: var(--primary-text-color);
611
- background: #f8f8f8;
612
- display: block;
613
- height: 3rem;
614
- cursor: pointer;
615
- width: 100%;
616
- line-height: 1.375rem;
617
- text-align: left;
618
- padding: 0.75rem 1rem;
619
- opacity: 1;
620
- }
621
- .eds-contrast .eds-overflow-menu__item {
622
- color: #181c56;
623
- }
624
- .eds-overflow-menu__item.eds-overflow-menu__item--disabled {
625
- background: #e9e9e9;
626
- color: #949494;
627
- }
628
- .eds-contrast .eds-overflow-menu__item.eds-overflow-menu__item--disabled {
629
- background: #e9e9e9;
630
- color: #949494;
631
- }
632
- .eds-overflow-menu__item.eds-overflow-menu__item--disabled:hover {
633
- cursor: not-allowed;
634
- background: #e9e9e9;
635
- color: #949494;
636
- }
637
- .eds-overflow-menu__item .eds-icon {
638
- margin-right: 0.75rem;
639
- }
640
- .eds-overflow-menu__item:hover, .eds-overflow-menu__item:focus, .eds-overflow-menu__item[data-selected] {
641
- background: #d1d4e3;
642
- }
643
- .eds-overflow-menu__item:focus {
644
- outline: none;
645
- }
646
-
647
- .eds-overflow-menu__item + .eds-overflow-menu__item {
648
- border-top: 0.0625rem solid #e9e9e9;
649
- }
650
-
651
- .eds-overflow-menu__menu-list[data-reach-menu-list] {
652
- border: 0.0625rem solid #e9e9e9;
653
- border-radius: 0.25rem;
654
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
655
- overflow: hidden;
656
- }
657
- .eds-overflow-menu__menu-list[data-reach-menu-list]:focus {
658
- outline: none;
659
- }
660
- .eds-overflow-menu__menu-list[data-reach-menu-list].eds-contrast {
661
- box-shadow: 0 0.0625rem 0.1875rem #393d79;
662
- }
663
-
664
- .eds-overflow-menu__menu-list[data-reach-menu-list],
665
- .eds-overflow-menu__menu-list[data-reach-menu-items] {
666
- -webkit-animation: slide-in 0.2s ease-in-out;
667
- animation: slide-in 0.2s ease-in-out;
668
- }
669
-
670
- @-webkit-keyframes slide-in {
671
- 0% {
672
- opacity: 0;
673
- transform: translateY(0.5rem);
674
- }
675
- 100% {
676
- opacity: 1;
677
- transform: translateY(0);
678
- }
679
- }
680
-
681
- @keyframes slide-in {
682
- 0% {
683
- opacity: 0;
684
- transform: translateY(0.5rem);
685
- }
686
- 100% {
687
- opacity: 1;
688
- transform: translateY(0);
689
- }
690
- }
691
- [data-reach-menu-popover] {
692
- position: absolute;
693
- z-index: 30;
694
- }
695
- [data-reach-menu-popover] .eds-overflow-menu__menu-list--left {
696
- position: relative;
697
- right: calc(100% - 2rem);
698
698
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/menu",
3
- "version": "4.1.18",
3
+ "version": "4.1.20",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/menu.esm.js",
@@ -23,14 +23,14 @@
23
23
  "lint": "dts lint"
24
24
  },
25
25
  "dependencies": {
26
- "@entur/a11y": "^0.2.50",
27
- "@entur/button": "^2.10.5",
28
- "@entur/expand": "^3.3.26",
29
- "@entur/icons": "^5.2.2",
30
- "@entur/layout": "^2.1.12",
31
- "@entur/tokens": "^3.4.1",
32
- "@entur/typography": "^1.7.1",
33
- "@entur/utils": "^0.4.6",
26
+ "@entur/a11y": "^0.2.52",
27
+ "@entur/button": "^2.10.7",
28
+ "@entur/expand": "^3.3.28",
29
+ "@entur/icons": "^5.4.0",
30
+ "@entur/layout": "^2.1.14",
31
+ "@entur/tokens": "^3.4.3",
32
+ "@entur/typography": "^1.7.3",
33
+ "@entur/utils": "^0.4.8",
34
34
  "@reach/menu-button": "^0.16.1",
35
35
  "classnames": "^2.3.1"
36
36
  },
@@ -38,5 +38,5 @@
38
38
  "react": ">=16.8.0",
39
39
  "react-dom": ">=16.8.0"
40
40
  },
41
- "gitHead": "11fde5ffbfd805773572c3a7d999d63f2733e0c7"
41
+ "gitHead": "103844c30bdc32296f3998a360cf6066492173e9"
42
42
  }