-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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-select without ion-label does not render properly #18773
Comments
Thanks for the issue. I believe this is because @brandyscarney Thoughts on this? At first glance this seems to be the correct behavior, but I can also understand why this behavior might be seen as incorrect. |
Good catch, didn't notice that! I agree, this is a bug. We will look into a fix for this. |
So just to make it complete, here is a sample:
I also have set in scss:
but as you can see the placeholder (and the value as well) of the select do not align with the |
was there any progress on this? |
There is a workaround to this, by setting the following (remove the padding if you don't want it aligned left with the input):
Here's a Codepen: https://codepen.io/brandyscarney/pen/NWPbdyr Unfortunately issues with workarounds are not at the top of our priority list at the moment but we always appreciate any help to push issues to the top with PRs. I'll add the The problem is the select & datetime are designed to be with a label so it will take some work to make sure they look good in instances with & without a label and where there are multiple of them in one item (see "Date"): |
This issue has been labeled as If you'd like to work on this issue, please comment here letting us know that you would like to submit a pull request for it. This helps us to keep track of the pull request and make sure there isn't duplicated effort. For a guide on how to create a pull request and test this project locally to see your changes, see our contributing documentation. Thank you! |
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. |
Bug Report
Ionic version:
[x] 4.x
Current behavior:
When setting an
ion-select
without anion-label
, the select does not take the whole space and therefore looks very odd.Expected behavior:
The
ion-select
should just take any available space, just likeion-input
does.It is somewhat fixable by setting in css:
but it should by default just expand
Related code:
Other information:
Ionic info:
The text was updated successfully, but these errors were encountered: