@danske/sapphire-css 31.0.0 → 31.1.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.
@@ -93,10 +93,10 @@
93
93
  box-shadow: inset 0px -1px 0px 0px var(--sapphire-list-color-border-item-default);
94
94
  }
95
95
  /* For not virtualized list */
96
- .sapphire-list--without-last-divider:not(:has([role="presentation"]))
96
+ .sapphire-list--without-last-divider:not(:has([role="presentation"] > [role="presentation"]))
97
97
  .sapphire-list__item:last-child
98
98
  .sapphire-list__item-content-wrapper:not(.is-focus):not(:focus),
99
- .sapphire-list--without-last-divider:not(:has([role="presentation"]))
99
+ .sapphire-list--without-last-divider:not(:has([role="presentation"] > [role="presentation"]))
100
100
  .sapphire-list__item:last-child,
101
101
  /* For virtualized lists.
102
102
  * This is admittedly a bad-looking selector. To keep in
@@ -36,11 +36,13 @@
36
36
  box-shadow: inset 0px 0px 0px 1px
37
37
  var(--sapphire-select-color-border-field-default);
38
38
  border-radius: var(--sapphire-select-size-radius-field);
39
+ gap: var(--sapphire-select-size-spacing-control-gap-l);
39
40
  }
40
41
 
41
42
  .sapphire-select--medium .sapphire-select__button {
42
43
  height: var(--sapphire-select-size-height-field-m);
43
44
  padding: 0 var(--sapphire-select-size-spacing-control-horizontal-m);
45
+ gap: var(--sapphire-select-size-spacing-control-gap-m);
44
46
  }
45
47
 
46
48
  .sapphire-select__value {
@@ -76,6 +78,19 @@
76
78
  height: var(--sapphire-select-size-height-icon-m);
77
79
  }
78
80
 
81
+ /**
82
+ * Prefix
83
+ */
84
+
85
+ .sapphire-select__prefix {
86
+ display: inherit; /* because this will not be a div */
87
+ font-size: var(--sapphire-select-size-font-content-l);
88
+ }
89
+
90
+ .sapphire-select--medium .sapphire-select__prefix {
91
+ font-size: var(--sapphire-select-size-font-content-m);
92
+ }
93
+
79
94
  /*
80
95
  * Search input. If visually-hidden styles are not inline,
81
96
  * data-hidden="true" can be added when the input is visually hidden,
@@ -5,6 +5,7 @@ declare const styles: {
5
5
  readonly "sapphire-select__value": string;
6
6
  readonly "sapphire-select__placeholder": string;
7
7
  readonly "sapphire-select__icon-container": string;
8
+ readonly "sapphire-select__prefix": string;
8
9
  readonly "sapphire-select__search-input": string;
9
10
  readonly "sapphire-select__native-select": string;
10
11
  readonly "sapphire-select--error": string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danske/sapphire-css",
3
- "version": "31.0.0",
3
+ "version": "31.1.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,
@@ -66,7 +66,7 @@
66
66
  "typescript": "~4.6.4"
67
67
  },
68
68
  "dependencies": {
69
- "@danske/sapphire-design-tokens": "^39.0.0"
69
+ "@danske/sapphire-design-tokens": "^39.1.0"
70
70
  },
71
- "gitHead": "ac09b3b908a8558628aaab2aabd701c18c3f5a11"
71
+ "gitHead": "5aa8a7225377aa11bab09590c0a7d631ef87c7e0"
72
72
  }