@elasticias/ui 1.0.33 → 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.33",
3
+ "version": "1.0.35",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0",
@@ -3678,6 +3678,24 @@ input.ef-input[type='number'] {
3678
3678
  transform: translateY(-50%);
3679
3679
  }
3680
3680
 
3681
+ /* The same centring, for the clear that PrimeNG owns rather than we do.
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 {
3694
+ top: 50%;
3695
+ margin-top: 0;
3696
+ transform: translateY(-50%);
3697
+ }
3698
+
3681
3699
  /* Clearable textarea — clear ✕ pinned to the top-trailing corner (clear of
3682
3700
  the bottom-right resize handle); text gets trailing padding to dodge it. */
3683
3701
  .ef-textarea-wrap {