Join GitHub today
Stacked labels always center content #16375
Describe the Bug
Steps to Reproduce
Thanks for the issue! This is something that I believe item has done for awhile now. It has
I'm not sure of your markup, but if you're using something like a div you can style it using the following:
This issue has been automatically identified as an Ionic 3 issue. We recently moved Ionic 3 to its own repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there.
If I've made a mistake, and if this issue is still relevant to Ionic 4, please let the Ionic Framework team know!
Thank you for using Ionic!
Sometimes we have to display data in a read-only format, so an input doesn't make a lot of sense. I was expecting I could do something like
But that gets centered. The align-self workaround above does work.
I'll have to look into seeing if there's an easy way for us to do this without breaking the standard items. The issue is if I change the alignment of an item by default to
I think the solution here (in Ionic) is to change the alignment for stacked/floating items like this:
and/or move the css for this rule to the parent item and inherit it in the inner one so the user has more control over it.
In the meantime could you please continue to use the workaround. Thanks!