@sentropic/design-system-svelte 0.37.1 → 0.37.2

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.
@@ -61,6 +61,10 @@
61
61
  display: inline-grid;
62
62
  gap: 0.625rem;
63
63
  grid-template-columns: auto 1fr;
64
+ /* The row carries the label typography so `1lh` is one label line: the
65
+ box and the trailing slot centre on that first line (see below). */
66
+ font-size: var(--st-component-selection-choiceLabelFontSize, 0.9375rem);
67
+ line-height: var(--st-component-selection-choiceLabelLineHeight, normal);
64
68
  }
65
69
 
66
70
  /* SIGNAL filter row: input + content + trailing count, content fills, trailing
@@ -78,6 +82,9 @@
78
82
  align-self: start;
79
83
  display: inline-flex;
80
84
  flex: 0 0 auto;
85
+ /* One label line high, content centred: a count Badge sits on the same
86
+ axis as the box and the label, even when it is taller than the line. */
87
+ height: 1lh;
81
88
  justify-content: flex-end;
82
89
  }
83
90
 
@@ -86,8 +93,15 @@
86
93
  d'anatomie + états. Aucun widget custom, a11y native préservée. */
87
94
  accent-color: var(--st-component-selection-checkedBackground, var(--st-semantic-action-primary));
88
95
  cursor: inherit;
96
+ font: inherit;
89
97
  height: 1rem;
98
+ /* Vertical centring on the first label line, whatever the theme's label
99
+ font size and line height: offset the 1rem box by half the difference
100
+ between one label line (1lh) and its own height. Top alignment is kept
101
+ so a wrapped description stays under the label. The first declaration
102
+ is the fallback for engines without the lh unit. */
90
103
  margin: 0.125rem 0 0;
104
+ margin: calc((1lh - 1rem) / 2) 0 0;
91
105
  width: 1rem;
92
106
  }
93
107
 
@@ -135,6 +149,7 @@
135
149
  .st-choice__help {
136
150
  color: var(--st-component-field-helpText, var(--st-semantic-text-secondary));
137
151
  font-size: 0.8125rem;
152
+ line-height: normal;
138
153
  }
139
154
 
140
155
  /* Secondary muted description under the label (SIGNAL filter hint). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentropic/design-system-svelte",
3
- "version": "0.37.1",
3
+ "version": "0.37.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "publishConfig": {