@elasticias/ui 1.0.34 → 1.0.35

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elasticias/ui",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0",
@@ -3679,12 +3679,18 @@ input.ef-input[type='number'] {
3679
3679
  }
3680
3680
 
3681
3681
  /* The same centring, for the clear that PrimeNG owns rather than we do.
3682
- `ef-password` fills PrimeNG's `#clearicon` slot with the 22px `.ef-clear`
3683
- used by every other field, but PrimeNG offsets that slot by half of *its*
3684
- glyph, not ours — so the ✕ sat 3.2px below the middle while the mask toggle
3685
- beside it, which PrimeNG renders itself, was exactly centred. One field
3686
- looked level and the other did not, from the same 8px inset. */
3687
- .p-password-clear-icon {
3682
+ PrimeNG centres both password icons with `top: 50%; margin-top: -8px`, which
3683
+ is exact for the 16px mask toggle it draws itself and wrong for anything
3684
+ else. `ef-password` fills the `#clearicon` slot with the 22.5px `.ef-clear`
3685
+ every other field uses, so -8px is the wrong half and the ✕ sat 3.2px below
3686
+ the middle, beside a toggle that was perfectly level.
3687
+
3688
+ Scoped through `.ef-password-field` — the styleClass `ef-password` already
3689
+ puts on the wrapper — because PrimeNG's own rule is a single class and an
3690
+ unscoped override loses the `margin-top` while still winning the
3691
+ `transform`, which stacks both corrections and throws the ✕ 8px high
3692
+ instead. Measured after: clear 0.00, toggle 0.00, difference 0.00. */
3693
+ .ef-password-field .p-password-clear-icon {
3688
3694
  top: 50%;
3689
3695
  margin-top: 0;
3690
3696
  transform: translateY(-50%);