ionic-framework
ionic-framework copied to clipboard
fix(input): do not float label because of slotted items
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:
Screenshot after:
This issue also seems to fix issue #29449