contain-css-svelte 1.1.15 → 1.1.16

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.
@@ -155,6 +155,10 @@ label::before {
155
155
  display: inline-grid;
156
156
  place-content: center;
157
157
  content: " ";
158
+ /* Fixed-size flex item: without this, a narrow container (long label
159
+ text with nowhere to wrap) shrinks the box itself instead of only
160
+ wrapping the text, turning the square into a rectangle. */
161
+ flex-shrink: 0;
158
162
  width: var(--checkbox-size, var(--font-size, var(--size, 1em)));
159
163
  height: var(--checkbox-size, var(--font-size, var(--size, 1em)));
160
164
  --link-bg: var(--checkbox-link-bg, var(--toggle-link-bg, var(--inactive-link-bg, var(--secondary-link-bg, inherit))));
@@ -134,6 +134,9 @@ label.radio-item::before {
134
134
  display: inline-grid;
135
135
  place-content: center;
136
136
  content: " ";
137
+ /* Fixed-size flex item: without this, a narrow container shrinks the
138
+ circle itself instead of only the label text. */
139
+ flex-shrink: 0;
137
140
  width: var(--radio-button-size, var(--font-size, var(--size, 1em)));
138
141
  height: var(--radio-button-size, var(--font-size, var(--size, 1em)));
139
142
  --link-bg: var(--radio-button-link-bg, var(--toggle-link-bg, var(--inactive-link-bg, var(--secondary-link-bg, inherit))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contain-css-svelte",
3
- "version": "1.1.15",
3
+ "version": "1.1.16",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "capture:review": "node scripts/capture-review.mjs",