@neuravision/construct 2.1.2 → 2.1.3
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.
- package/CHANGELOG.md +9 -0
- package/components/chip.css +12 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,15 @@ All notable changes to `@neuravision/construct` will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.1.3] - 2026-07-17
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Chip: custom icons composed into the `.ct-chip__icon` slot (a `.ct-icon` — also when wrapped
|
|
13
|
+
by a framework component host — or a bare `<svg>`) now adopt the slot's 1em size. Previously
|
|
14
|
+
`.ct-icon` kept its fixed `--icon-md` box and overflowed the slot onto the chip label
|
|
15
|
+
(visible as a copy icon overlapping the first characters of ID chips).
|
|
16
|
+
|
|
8
17
|
## [2.1.2] - 2026-07-16
|
|
9
18
|
|
|
10
19
|
### Added
|
package/components/chip.css
CHANGED
|
@@ -206,6 +206,18 @@
|
|
|
206
206
|
color: var(--ct-chip-accent);
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
/* Composed icon content adopts the slot's size. `.ct-icon` carries a
|
|
210
|
+
fixed `--icon-md` box of its own; inside the 1em chip slot that box
|
|
211
|
+
would overflow onto the label (an intermediate wrapper — e.g. a
|
|
212
|
+
framework component host — keeps `width: 100%` from resolving, so
|
|
213
|
+
the slot size is restated in em). */
|
|
214
|
+
.ct-chip__icon .ct-icon,
|
|
215
|
+
.ct-chip__icon > svg {
|
|
216
|
+
width: 1em;
|
|
217
|
+
height: 1em;
|
|
218
|
+
font-size: 1em;
|
|
219
|
+
}
|
|
220
|
+
|
|
209
221
|
/* ── Built-in semantic icons via CSS mask-image ──────────────── */
|
|
210
222
|
|
|
211
223
|
.ct-chip__icon--info,
|