ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Unnecessary padding for ion-item when creating inputs

Open oktav777 opened this issue 10 years ago • 7 comments

Short description of the problem:

Here is a demo that shows how it looks with and without padding screenshot_1

The padding for ion-item is unnecessary when it's a parrent for an ion-input, I have read the specs of Material design and there is no additional padding for text/inputs. Same I guess is for ios.

<ion-item>
    <ion-label primary floating>Username</ion-label>
    <ion-input placeholder="Some text"></ion-input>
</ion-item>

probably this should fix it, if this padding is not for other components

ion-item.item-input {
    padding-left: 0;
}

Which Ionic Version? 1.x or 2.x ionic2 beta.10

oktav777 avatar Jul 05 '16 09:07 oktav777

I am also wondering why this padding is defined. Your fix removes it just from .item-input, but it's still for .item-select, .item-checkbox, .item-datetime and others.

Using selector .item would interfere with http://ionicframework.com/docs/v2/components/#menus, but ion-item seems to be fine.

karlschwaier avatar Dec 01 '16 16:12 karlschwaier

Bump

cabralRodrigo avatar Oct 16 '17 03:10 cabralRodrigo

Any updates on this @brandyscarney ?

yordis avatar Jun 15 '18 17:06 yordis

I'll add this as something to look at as part of v4, but for now please use a css workaround. This will become easier to customize in v4, as well. Thank you!

brandyscarney avatar Jun 26 '18 15:06 brandyscarney

Thanks for the issue! We have moved the source code and issues for Ionic 3 into a separate repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there.

Thank you for using Ionic!

ionitron-bot[bot] avatar Nov 01 '18 20:11 ionitron-bot[bot]

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!

ionitron-bot[bot] avatar Nov 28 '18 21:11 ionitron-bot[bot]

Issue moved to: https://github.com/ionic-team/ionic-v3/issues/119

ionitron-bot[bot] avatar Nov 28 '18 21:11 ionitron-bot[bot]