@entur/button 3.2.38 → 3.3.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 (2) hide show
  1. package/dist/styles.css +63 -63
  2. package/package.json +3 -3
package/dist/styles.css CHANGED
@@ -45,12 +45,12 @@ a.eds-button--size-large {
45
45
  border-color: var(--eds-button-border-active);
46
46
  color: var(--eds-button-text-active);
47
47
  }
48
- .eds-button:focus {
48
+ .eds-button:focus-visible {
49
49
  outline: 2px solid #181c56;
50
50
  outline-color: var(--basecolors-stroke-focus-standard);
51
51
  outline-offset: 0.125rem;
52
52
  }
53
- .eds-contrast .eds-button:focus {
53
+ .eds-contrast .eds-button:focus-visible {
54
54
  outline-color: var(--basecolors-stroke-focus-contrast);
55
55
  }
56
56
  .eds-button > .eds-button__loading-dots {
@@ -251,12 +251,12 @@ a.eds-button--size-large {
251
251
  .eds-floating-button:active {
252
252
  background-color: var(--components-button-floating-standard-active);
253
253
  }
254
- .eds-floating-button:focus {
254
+ .eds-floating-button:focus-visible {
255
255
  outline: 2px solid #181c56;
256
256
  outline-color: var(--basecolors-stroke-focus-standard);
257
257
  outline-offset: 0.125rem;
258
258
  }
259
- .eds-contrast .eds-floating-button:focus {
259
+ .eds-contrast .eds-floating-button:focus-visible {
260
260
  outline-color: var(--basecolors-stroke-focus-contrast);
261
261
  }
262
262
  .eds-contrast .eds-floating-button {
@@ -311,15 +311,15 @@ a.eds-button--size-large {
311
311
  -webkit-text-decoration: none;
312
312
  text-decoration: none;
313
313
  }
314
- .eds-square-button:focus {
314
+ .eds-square-button:focus-visible {
315
315
  outline: none;
316
316
  }
317
- .eds-square-button:focus .eds-square-button__button {
317
+ .eds-square-button:focus-visible .eds-square-button__button {
318
318
  outline: 2px solid #181c56;
319
319
  outline-color: var(--basecolors-stroke-focus-standard);
320
320
  outline-offset: 0.125rem;
321
321
  }
322
- .eds-contrast .eds-square-button:focus .eds-square-button__button {
322
+ .eds-contrast .eds-square-button:focus-visible .eds-square-button__button {
323
323
  outline-color: var(--basecolors-stroke-focus-contrast);
324
324
  }
325
325
  .eds-square-button[disabled]:not(.eds-square-button--loading) {
@@ -460,6 +460,62 @@ a.eds-button--size-large {
460
460
  }
461
461
  /* DO NOT CHANGE!*/
462
462
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
463
+ .eds-icon-button {
464
+ border: 0.125rem solid transparent;
465
+ border-radius: 0.25rem;
466
+ background: none;
467
+ color: var(--components-button-iconbutton-standard-text);
468
+ cursor: pointer;
469
+ display: flex;
470
+ justify-content: center;
471
+ align-items: center;
472
+ font-size: 1rem;
473
+ padding: 0.5rem;
474
+ }
475
+ .eds-contrast .eds-icon-button {
476
+ color: var(--components-button-iconbutton-contrast-text);
477
+ }
478
+ .eds-contrast .eds-icon-button > .eds-loading-dots .eds-loading-dots__dot {
479
+ background-color: var(--components-button-iconbutton-contrast-icon);
480
+ }
481
+ .eds-icon-button--size-small {
482
+ height: 1.5rem;
483
+ width: 1.5rem;
484
+ padding: 0;
485
+ }
486
+ .eds-icon-button:hover {
487
+ background-color: var(--components-button-iconbutton-standard-hover);
488
+ }
489
+ .eds-contrast .eds-icon-button:hover {
490
+ background-color: var(--components-button-iconbutton-contrast-hover);
491
+ }
492
+ .eds-icon-button:active {
493
+ background: var(--components-button-iconbutton-standard-active);
494
+ color: var(--components-button-iconbutton-standard-text-active);
495
+ }
496
+ .eds-contrast .eds-icon-button:active {
497
+ background: var(--components-button-iconbutton-contrast-active);
498
+ color: var(--components-button-iconbutton-contrast-text-active);
499
+ }
500
+ .eds-icon-button:focus-visible {
501
+ outline: 2px solid #181c56;
502
+ outline-color: var(--basecolors-stroke-focus-standard);
503
+ outline-offset: 0.125rem;
504
+ }
505
+ .eds-contrast .eds-icon-button:focus-visible {
506
+ outline-color: var(--basecolors-stroke-focus-contrast);
507
+ }
508
+ .eds-icon-button--disabled {
509
+ opacity: 0.5;
510
+ pointer-events: none;
511
+ }
512
+ .eds-icon-button--disabled__wrapper {
513
+ cursor: not-allowed;
514
+ width: -moz-fit-content;
515
+ width: fit-content;
516
+ }
517
+ /* DO NOT CHANGE!*/
518
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
463
519
  /* DO NOT CHANGE!*/
464
520
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
465
521
  /* DO NOT CHANGE!*/
@@ -839,59 +895,3 @@ a.eds-button--size-large {
839
895
  :root {
840
896
  --eds-button: 1;
841
897
  }
842
- /* DO NOT CHANGE!*/
843
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
844
- .eds-icon-button {
845
- border: 0.125rem solid transparent;
846
- border-radius: 0.25rem;
847
- background: none;
848
- color: var(--components-button-iconbutton-standard-text);
849
- cursor: pointer;
850
- display: flex;
851
- justify-content: center;
852
- align-items: center;
853
- font-size: 1rem;
854
- padding: 0.5rem;
855
- }
856
- .eds-contrast .eds-icon-button {
857
- color: var(--components-button-iconbutton-contrast-text);
858
- }
859
- .eds-contrast .eds-icon-button > .eds-loading-dots .eds-loading-dots__dot {
860
- background-color: var(--components-button-iconbutton-contrast-icon);
861
- }
862
- .eds-icon-button--size-small {
863
- height: 1.5rem;
864
- width: 1.5rem;
865
- padding: 0;
866
- }
867
- .eds-icon-button:hover {
868
- background-color: var(--components-button-iconbutton-standard-hover);
869
- }
870
- .eds-contrast .eds-icon-button:hover {
871
- background-color: var(--components-button-iconbutton-contrast-hover);
872
- }
873
- .eds-icon-button:active {
874
- background: var(--components-button-iconbutton-standard-active);
875
- color: var(--components-button-iconbutton-standard-text-active);
876
- }
877
- .eds-contrast .eds-icon-button:active {
878
- background: var(--components-button-iconbutton-contrast-active);
879
- color: var(--components-button-iconbutton-contrast-text-active);
880
- }
881
- .eds-icon-button:focus {
882
- outline: 2px solid #181c56;
883
- outline-color: var(--basecolors-stroke-focus-standard);
884
- outline-offset: 0.125rem;
885
- }
886
- .eds-contrast .eds-icon-button:focus {
887
- outline-color: var(--basecolors-stroke-focus-contrast);
888
- }
889
- .eds-icon-button--disabled {
890
- opacity: 0.5;
891
- pointer-events: none;
892
- }
893
- .eds-icon-button--disabled__wrapper {
894
- cursor: not-allowed;
895
- width: -moz-fit-content;
896
- width: fit-content;
897
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/button",
3
- "version": "3.2.38",
3
+ "version": "3.3.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/button.esm.js",
@@ -27,7 +27,7 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/loader": "^0.5.16",
30
+ "@entur/loader": "^0.5.17",
31
31
  "@entur/tokens": "^3.17.5",
32
32
  "@entur/utils": "^0.12.2",
33
33
  "classnames": "^2.3.1"
@@ -35,5 +35,5 @@
35
35
  "devDependencies": {
36
36
  "dts-cli": "2.0.5"
37
37
  },
38
- "gitHead": "1a989376d61ab59a8c554a9cab733039aef8b2eb"
38
+ "gitHead": "2a0e12f4ccbc65c2c8a115690b4895ff01ee7f06"
39
39
  }