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: ion-input has no option to contain a button or icon #26750

Closed
4 of 8 tasks
paul-schweng opened this issue Feb 7, 2023 · 2 comments
Closed
4 of 8 tasks

bug: ion-input has no option to contain a button or icon #26750

paul-schweng opened this issue Feb 7, 2023 · 2 comments
Labels

Comments

@paul-schweng
Copy link

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • v7.x
  • Nightly

Current Behavior

In Ionic v7 you can use the ion-input without ion-item wrapper:

<ion-input
  label="Username"
  shape="round"
  fill="outline"
  label-placement="floating"
  placeholder="Username eingeben...">
</ion-input>

But there is no parameter to set a button or icon, so that the button is contained in the input field.

If you try to make it the old-fashioned way with the ion-item wrapper the button is inside of the input field, but the style is different.

grafik
Username field is the code above and password field is the code below. As you can see the styles are different:

<ion-item shape="round" lines="none" fill="outline">
  <ion-input
    label="Passwort"
    label-placement="floating"
    [clearOnEdit]="false"
    placeholder="Passwort eingeben...">
  </ion-input>
  <ion-button slot="end" fill="clear">
    <ion-icon size="large" [name]="'eye-outline'"></ion-icon>
  </ion-button>
</ion-item>

Expected Behavior

You should use the ion-input the same way like in v6 with the ion-item wrapper and buttons. They should also look the same.

Steps to Reproduce

See the code above

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 6.20.8 (C:\Users\pauls\AppData\Roaming\nvm\v18.12.1\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 7.0.0-beta.1
@angular-devkit/build-angular : 14.2.10
@angular-devkit/schematics : 14.2.10
@angular/cli : 14.2.10
@ionic/angular-toolkit : 6.1.0

Capacitor:

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

Utility:

cordova-res : 0.15.4
native-run : 1.7.1

System:

NodeJS : v18.12.1 (C:\Program Files\nodejs\node.exe)
npm : 9.3.1
OS : Windows 10

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Feb 7, 2023
@liamdebeasi liamdebeasi self-assigned this Feb 7, 2023
@liamdebeasi
Copy link
Contributor

Thanks for testing Ionic 7! We have an open feature request at #26297, so I am going to merge these threads.

@liamdebeasi liamdebeasi closed this as not planned Won't fix, can't repro, duplicate, stale Feb 7, 2023
@liamdebeasi liamdebeasi removed their assignment Feb 7, 2023
@ionitron-bot
Copy link

ionitron-bot bot commented Mar 9, 2023

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 Mar 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants