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: md, text in input does not align with label #24404

Closed
4 of 6 tasks
reed-lawrence opened this issue Dec 14, 2021 · 1 comment · Fixed by #24620
Closed
4 of 6 tasks

bug: md, text in input does not align with label #24404

reed-lawrence opened this issue Dec 14, 2021 · 1 comment · Fixed by #24620
Labels
package: core @ionic/core package type: bug a confirmed bug report

Comments

@reed-lawrence
Copy link

Prerequisites

Ionic Framework Version

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

Current Behavior

ion-label within ion-item in md mode is 1px lower than the text within the body of the ion-item

Screen Shot 2021-12-14 at 5 23 05 PM

Expected Behavior

The text within the ion-label should be inline with the text within the ion-item
Screen Shot 2021-12-14 at 5 26 21 PM

This is currently being worked around by applying margin-top: 10px to the <ion-label> element

Steps to Reproduce

<ion-item [mode]="'md'">
  <ion-label>Type</ion-label>
  <ion-input [type]="'text'"></ion-input>
</ion-item>

Code Reproduction URL

No response

Ionic Info

Ionic:

   Ionic CLI                     : 6.18.1 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 6.0.0
   @angular-devkit/build-angular : 13.0.4
   @angular-devkit/schematics    : 13.0.4
   @angular/cli                  : 13.0.4
   @ionic/angular-toolkit        : 5.0.3

Capacitor:

   Capacitor CLI      : 3.3.3
   @capacitor/android : not installed
   @capacitor/core    : 3.3.3
   @capacitor/ios     : not installed

Utility:

   cordova-res : not installed globally
   native-run  : 1.5.0

System:

   NodeJS : v16.13.0 (/usr/local/bin/node)
   npm    : 8.3.0
   OS     : macOS Monterey

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Dec 14, 2021
@liamdebeasi liamdebeasi self-assigned this Dec 15, 2021
@liamdebeasi liamdebeasi changed the title bug: bug: md, text in input does not align with label Dec 15, 2021
@liamdebeasi liamdebeasi added package: core @ionic/core package type: bug a confirmed bug report labels Dec 15, 2021
@liamdebeasi liamdebeasi removed their assignment Dec 15, 2021
@ionitron-bot ionitron-bot bot removed the triage label Dec 15, 2021
sean-perkins added a commit that referenced this issue Jan 21, 2022
@ionitron-bot
Copy link

ionitron-bot bot commented Feb 20, 2022

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 Feb 20, 2022
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants