@danske/sapphire-css 46.0.0 → 46.0.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.
@@ -3,11 +3,6 @@
3
3
  height: var(--sapphire-semantic-size-height-control-md);
4
4
  }
5
5
 
6
- .sapphire-segmented-control--stretch
7
- .sapphire-segmented-control__button-container {
8
- width: 100%;
9
- }
10
-
11
6
  .sapphire-segmented-control--align-center {
12
7
  justify-content: center;
13
8
  }
@@ -66,7 +61,6 @@
66
61
  */
67
62
  -webkit-font-smoothing: antialiased;
68
63
  -moz-osx-font-smoothing: grayscale;
69
- flex: 1 1 auto;
70
64
  box-sizing: content-box;
71
65
  margin: 0;
72
66
  border: 0;
@@ -84,6 +78,7 @@
84
78
  position: relative;
85
79
  transition: color var(--sapphire-semantic-time-motion-quick)
86
80
  var(--sapphire-semantic-transitions-dynamic);
81
+ white-space: nowrap;
87
82
  }
88
83
 
89
84
  .sapphire-segmented-control__button--active {
@@ -95,6 +90,12 @@
95
90
  cursor: not-allowed;
96
91
  }
97
92
 
93
+ .sapphire-segmented-control--stretch
94
+ .sapphire-segmented-control__button-container,
95
+ .sapphire-segmented-control--stretch .sapphire-segmented-control__button {
96
+ width: 100%;
97
+ }
98
+
98
99
  .sapphire-segmented-control.focus-visible:focus-within
99
100
  .sapphire-segmented-control__glider {
100
101
  outline: var(--sapphire-semantic-size-focus-ring) solid
@@ -1,15 +1,15 @@
1
1
  declare const styles: {
2
2
  readonly "sapphire-segmented-control": string;
3
- readonly "sapphire-segmented-control--stretch": string;
4
- readonly "sapphire-segmented-control__button-container": string;
5
3
  readonly "sapphire-segmented-control--align-center": string;
6
4
  readonly "sapphire-segmented-control--align-right": string;
7
5
  readonly "sapphire-segmented-control--align-left": string;
6
+ readonly "sapphire-segmented-control__button-container": string;
8
7
  readonly "sapphire-segmented-control__glider": string;
9
8
  readonly "sapphire-segmented-control__glider--with-transition": string;
10
9
  readonly "sapphire-segmented-control__button": string;
11
10
  readonly "sapphire-segmented-control__button--active": string;
12
11
  readonly "sapphire-segmented-control__button--disabled": string;
12
+ readonly "sapphire-segmented-control--stretch": string;
13
13
  readonly "focus-visible": string;
14
14
  readonly "sapphire-segmented-control--manual-keyboard-activation": string;
15
15
  readonly "sapphire-segmented-control--lg": string;
@@ -40,8 +40,8 @@
40
40
  padding-right: var(--sapphire-semantic-size-spacing-3xl);
41
41
  background: linear-gradient(
42
42
  90deg,
43
- var(--sapphire-global-color-white) 0%,
44
- var(--sapphire-global-color-white) 40%,
43
+ var(--sapphire-semantic-color-background-surface) 0%,
44
+ var(--sapphire-semantic-color-background-surface) 40%,
45
45
  var(--sapphire-global-color-transparent) 100%
46
46
  );
47
47
  }
@@ -52,8 +52,8 @@
52
52
  background: linear-gradient(
53
53
  90deg,
54
54
  var(--sapphire-global-color-transparent) 0%,
55
- var(--sapphire-global-color-white) 60%,
56
- var(--sapphire-global-color-white) 100%
55
+ var(--sapphire-semantic-color-background-surface) 60%,
56
+ var(--sapphire-semantic-color-background-surface) 100%
57
57
  );
58
58
  }
59
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danske/sapphire-css",
3
- "version": "46.0.0",
3
+ "version": "46.0.1",
4
4
  "description": "CSS implementation of the Sapphire Design System from Danske Bank A/S",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "sideEffects": false,
@@ -69,5 +69,5 @@
69
69
  "dependencies": {
70
70
  "@danske/sapphire-design-tokens": "^42.2.1"
71
71
  },
72
- "gitHead": "b745d009a1799e0912fcaeb52973104d566326c0"
72
+ "gitHead": "692164bc64264d35f2c3f3f3a3e6f2ad2e6afe8d"
73
73
  }