Skip to content

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

Closed

Description

@martinmitteregger

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

Activity

  1. changed the title [-]bug: Alignment [/-] [+]bug: Incorrect alignment of ion-select selection using floating labels[/+] on Jul 20, 2021
  2. liamdebeasi commented on Jul 20, 2021

    @liamdebeasi
    Contributor

    Thanks! This will be fixed in #23474.

  3. added
    package: core
    type: bug
    on Jul 20, 2021
  4. added this to the 6.0.0-beta.2 milestone on Jul 20, 2021
  5. added
    v6
    on Jul 20, 2021
  6. added a commit that references this issue on Jul 20, 2021
    2c07a15
  7. liamdebeasi commented on Jul 20, 2021

    @liamdebeasi
    Contributor

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

  8. ionitron-bot commented on Aug 19, 2021

    @ionitron-bot

    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.

  9. locked and limited conversation to collaborators on Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: coretype: bugv6

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions