Skip to content

bug: [v7.5] Multiline floating label looks bad above ion-select #28552

@petrot

Description

@petrot

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

Please check my demo here:
https://stackblitz.com/edit/angular-rwpxp7?file=src%2Fapp%2Fexample.component.html

The first part is the "old style", it uses separated ion-label for the select. The second part uses the new style, with an inner slot div. The behaviour of the two cases are very different.

Expected Behavior

The label appears as with the old labeling style.

Steps to Reproduce

Please check my demo code

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 7.1.5
Ionic Framework : @ionic/angular 7.5.2
@angular-devkit/build-angular : 16.2.7
@angular-devkit/schematics : 16.2.7
@angular/cli : 16.2.7
@ionic/angular-toolkit : 7.0.0

Capacitor:

Capacitor CLI : 5.5.1
@capacitor/android : 5.5.1
@capacitor/core : 5.5.1
@capacitor/ios : 5.5.1

Utility:

cordova-res : 0.15.4
native-run (update available: 2.0.0) : 1.7.4

System:

NodeJS : v16.17.0
OS : macOS Unknown

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions