origam 2.32.1 → 2.32.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.
- package/CHANGELOG.md +10 -0
- package/dist/src/components/Btn/OrigamBtn.vue +19 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -18,6 +18,16 @@ This project follows [Semantic Versioning](https://semver.org).
|
|
|
18
18
|
|
|
19
19
|
## [Unreleased]
|
|
20
20
|
|
|
21
|
+
## [2.32.2] - 2026-10-17
|
|
22
|
+
|
|
23
|
+
### Fixed — `OrigamBtn` : libellé collé en haut au lieu d'être centré (#1168)
|
|
24
|
+
|
|
25
|
+
Régression publiée de 2.29.1 à 2.32.1, introduite par #1094. La hauteur du bouton est devenue `height: auto` + `min-height`, et le `height: 100%` de la grille interne `.origam-btn__loader` ne se résolvait plus contre une hauteur automatique. La racine était `inline-block`, donc son `align-items: center` restait sans effet. Résultat : un bouton rendu en `<a>` (`href` / `to`) affichait son contenu d'une ligne collé en haut de la boîte. Mesuré en Chromium : écart de 4 à 21 px entre le centre du contenu et le centre du bouton, 35 boutons `<a>` d'une ligne décentrés sur les 40 de la matrice. Les 5 autres avaient une hauteur fixe (`icon`, prop `height`), étaient en `block` (déjà en flex), ou avaient un contenu aussi haut que le minimum (x-small compact). Un `<button>` natif masquait le défaut, puisque le navigateur centre lui-même son contenu.
|
|
26
|
+
|
|
27
|
+
- La racine passe de `inline-block` à `inline-flex`, et son `align-items: center` prend enfin effet. Elle reste de niveau inline (#933). Dans un parent flex ou grid, elle est blockifiée en `flex` au lieu de `block`. `block` (`display: flex`, #1095) et `wrap` (le bouton grandit avec son contenu, #1094) sont inchangés.
|
|
28
|
+
- `inline-flex` plutôt que `inline-grid`, d'après la mesure : la directive ripple ajoute un `origam-ripple__container` dans le flux pendant l'appui. Avec une racine en grille, ce conteneur prend une rangée implicite et le libellé saute de 4 px à chaque clic.
|
|
29
|
+
- Effet de bord mesuré : les boutons perdent environ 1 px de largeur (0,9 à 1,6 px). Ce pixel venait du `letter-spacing` ajouté après la grille interne quand elle était posée dans une ligne inline. Le libellé est maintenant à égale distance des deux bords (12 px / 12 px au lieu de 13,1 px / 12 px). Aucune hauteur ne change.
|
|
30
|
+
|
|
21
31
|
## [2.32.1] - 2026-10-16
|
|
22
32
|
|
|
23
33
|
### Fixed — trois avertissements console en dev (#1152)
|
|
@@ -455,15 +455,25 @@ defineExpose({
|
|
|
455
455
|
// Btn roots computed `display: block` with a `display: flex` parent,
|
|
456
456
|
// and the single Btn inside a `<p>` computed `inline` at 984px wide.
|
|
457
457
|
//
|
|
458
|
-
//
|
|
459
|
-
//
|
|
460
|
-
//
|
|
461
|
-
//
|
|
462
|
-
//
|
|
463
|
-
|
|
464
|
-
//
|
|
465
|
-
//
|
|
466
|
-
//
|
|
458
|
+
// The root must stay INLINE-LEVEL (#933) — `vertical-align: middle` right
|
|
459
|
+
// below only has meaning on an inline-level box, and a Btn in a `<p>`
|
|
460
|
+
// must shrink to its content. Inside a flex/grid parent it blockifies to
|
|
461
|
+
// `flex`; `&--block` declares `flex` explicitly.
|
|
462
|
+
//
|
|
463
|
+
// ⛔ #1168 — it is `inline-flex`, not `inline-block`. Since #1094 the
|
|
464
|
+
// height is `auto` + `min-height`, and `__loader`'s `height: 100%` no
|
|
465
|
+
// longer resolves against an auto height: on an `<a>` (`href` / `to`) the
|
|
466
|
+
// label sat at the TOP of the box — 12 px of content glued under the top
|
|
467
|
+
// edge of a 28 px button (published 2.29.1 → 2.32.1). A `<button>` hid
|
|
468
|
+
// it, because the UA centres a button's content on its own. A flex root
|
|
469
|
+
// centres `__loader` with `align-items: center` below, on every tag.
|
|
470
|
+
//
|
|
471
|
+
// `inline-flex` rather than `inline-grid`, measured: the ripple directive
|
|
472
|
+
// appends an in-flow `origam-ripple__container` to this root while the
|
|
473
|
+
// pointer is down. A grid root gives it an implicit row that takes half
|
|
474
|
+
// the free height, and the label jumps 4 px on every press; a flex row
|
|
475
|
+
// leaves the label where it is.
|
|
476
|
+
display: inline-flex;
|
|
467
477
|
align-items: center;
|
|
468
478
|
|
|
469
479
|
position: var(--origam-btn---position, relative);
|