Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Incorrect alignment of ion-select selection using floating labels #23657

Closed
4 of 6 tasks
martinmitteregger opened this issue Jul 20, 2021 · 3 comments
Closed
4 of 6 tasks
Labels
package: core @ionic/core package type: bug a confirmed bug report v6 issues specific to Framework v6
Milestone

Comments

@martinmitteregger
Copy link

Prequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

When using an ion-select with fill=outline and a floating label the initial label is positioned right but after selecting a value the alignment of the selected value is false.
image

Expected Behavior

Selected value is aligned like other input values (see e.g. birthdate).

Steps to Reproduce

<ion-item fill="outline" class="ion-margin-top">
    <ion-label position="floating">Gender *</ion-label>
    <ion-select formControlName="gender">
        <ion-select-option [value]="gender.FEMALE">Female</ion-select-option>
        <ion-select-option [value]="gender.MALE">Male</ion-select-option>
        <ion-select-option [value]="gender.NON_BINARY">Non Binary</ion-select-option>
    </ion-select>
</ion-item>

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 6.12.3 (C:\Users\xxx\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 6.0.0-beta.1
@angular-devkit/build-angular : 12.0.5
@angular-devkit/schematics : 12.1.0
@angular/cli : 12.0.5
@ionic/angular-toolkit : 4.0.0

Capacitor:

Capacitor CLI : 3.0.2
@capacitor/core : 3.0.2

Utility:

cordova-res (update available: 0.15.2) : 0.15.1
native-run : 1.4.0

System:

NodeJS : v16.3.0 (C:\Program Files\nodejs\node.exe)
npm : 7.17.0
OS : Windows 10

Additional Information

According to the material design guidelines it should look like in the image below.
image

@ionitron-bot ionitron-bot bot added the triage label Jul 20, 2021
@martinmitteregger martinmitteregger changed the title bug: Alignment bug: Incorrect alignment of ion-select selection using floating labels Jul 20, 2021
@liamdebeasi
Copy link
Contributor

Thanks! This will be fixed in #23474.

@liamdebeasi liamdebeasi added package: core @ionic/core package type: bug a confirmed bug report labels Jul 20, 2021
@ionitron-bot ionitron-bot bot removed the triage label Jul 20, 2021
@liamdebeasi liamdebeasi added this to the 6.0.0-beta.2 milestone Jul 20, 2021
@liamdebeasi liamdebeasi added the v6 issues specific to Framework v6 label Jul 20, 2021
liamdebeasi pushed a commit that referenced this issue Jul 20, 2021
…llow multiple values in popover interface (#23474)

resolves #23657
resolves #15500
resolves #12310
@liamdebeasi
Copy link
Contributor

Thanks for the issue! This was resolved via #23474, and this update will be available in Ionic Framework v6 beta 2.

@ionitron-bot
Copy link

ionitron-bot bot commented Aug 19, 2021

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Aug 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: core @ionic/core package type: bug a confirmed bug report v6 issues specific to Framework v6
Projects
None yet
Development

No branches or pull requests

2 participants