@entur/dropdown 5.0.0-beta.0 → 5.0.0-beta.1

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/dist/styles.css CHANGED
@@ -413,11 +413,6 @@
413
413
  .eds-dropdown__list--open {
414
414
  display: inline-block;
415
415
  }
416
- @media all and (min-width: 50rem) {
417
- .eds-dropdown__list {
418
- max-height: 30vh;
419
- }
420
- }
421
416
  .eds-dropdown__list__item {
422
417
  background-color: #f8f8f8;
423
418
  color: #181c56;
@@ -433,19 +428,52 @@
433
428
  .eds-dropdown__list__item:last-child {
434
429
  border-bottom: none;
435
430
  }
436
- .eds-dropdown__list__item-text {
431
+ .eds-dropdown__list__item__text {
437
432
  flex: 1;
438
433
  }
439
- .eds-dropdown__list__item-icon {
434
+ .eds-dropdown__list__item__icon {
440
435
  margin-left: 0.75rem;
441
436
  }
437
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon {
438
+ border-color: #181c56;
439
+ }
440
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
441
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon {
442
+ background-color: #181c56;
443
+ }
444
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon path,
445
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon path {
446
+ stroke: #ffffff;
447
+ }
448
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon rect,
449
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon rect {
450
+ fill: #ffffff;
451
+ }
442
452
  .eds-dropdown__list__item--highlighted {
443
453
  background-color: #d1d4e3;
444
454
  }
455
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
456
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon,
457
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:checked + .eds-checkbox__icon,
458
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:indeterminate + .eds-checkbox__icon {
459
+ background-color: #54568c;
460
+ border-color: transparent;
461
+ }
462
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon,
463
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input + .eds-checkbox__icon {
464
+ border-color: #54568c;
465
+ }
445
466
  .eds-dropdown__list__item--selected {
446
467
  background-color: #54568c;
447
468
  color: #ffffff;
448
469
  }
470
+ @media all and (min-width: 50rem) {
471
+ .eds-dropdown__list {
472
+ max-height: 30vh;
473
+ }
474
+ }
475
+ /* DO NOT CHANGE!*/
476
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
449
477
  .eds-dropdown__selected-element-tag {
450
478
  height: 1.5rem;
451
479
  max-width: 40%;
@@ -463,6 +491,17 @@
463
491
  .eds-dropdown__selected-element-tag .eds-tag-chip__close-button > svg {
464
492
  font-size: 0.6rem;
465
493
  }
494
+ .eds-contrast .eds-dropdown__selected-element-tag {
495
+ background: #ebebf1;
496
+ border: 0.0625rem solid #d1d4e3;
497
+ color: #181c56;
498
+ }
499
+ .eds-contrast .eds-dropdown__selected-element-tag .eds-tag-chip__close-button {
500
+ color: #181c56;
501
+ }
502
+ .eds-contrast .eds-dropdown__selected-element-tag .eds-tag-chip__close-button:hover {
503
+ background-color: #babbcf;
504
+ }
466
505
  /* DO NOT CHANGE!*/
467
506
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
468
507
  .eds-dropdown__toggle-button {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "5.0.0-beta.0",
3
+ "version": "5.0.0-beta.1",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/dropdown.esm.js",
@@ -39,5 +39,5 @@
39
39
  "classnames": "^2.3.1",
40
40
  "downshift": "^6.1.7"
41
41
  },
42
- "gitHead": "82e44bdab6ab7769d25fa802b9bdbacf6cee0265"
42
+ "gitHead": "f324b88a5976375d80f67faaffab602200b90ea5"
43
43
  }