ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

fix(input): do not float label because of slotted items

Open ErikOnBike opened this issue 4 months ago • 1 comments

Issue number: resolves #28665


What is the current behavior?

The input label is floating if an element is slotted. This is especially annoying if a password toggle is present, since it will start floating the label (even when no input is available).

What is the new behavior?

A label will only float (if specified and) if it has a value or received focus.

Does this introduce a breaking change?

  • [ ] Yes
  • [X] No

Other information

Screenshot before: image

Screenshot after: image

This issue also seems to fix issue #29449

ErikOnBike avatar Oct 18 '24 12:10 ErikOnBike