Skip to content

Extra padding for some ion-item's #5534

Closed

Description

@drobbins

Short description of the problem:

Padding for ion-item's content is adjusted if the item is a link. This is especially apparent if you use an item-note but no item buttons.

What behavior are you expecting?

The padding to be the same, for the same content, regardless of whether it's a link or not.

Steps to reproduce:

  1. Visit http://codepen.io/anon/pen/adrKza

Ionic Version: nightly, driftyco:ionic 1.2.4 for meteor

Browser & Operating System: OSX + Chrome. Doesn't occur on Android / Chrome

Run ionic info from terminal/cmd prompt: n/a, I don't have the CLI installed.

Activity

  1. mhartington commented on Mar 1, 2016

    @mhartington
    Contributor

    Should be fixed in the nightly builds. Thanks for the heads up

  2. mhartington commented on Mar 7, 2016

    @mhartington
    Contributor

    Revisiting this, seems like there could be a better solution. Going to reopen this and think on this.

  3. Viveur commented on Jun 2, 2016

    @Viveur

    Have noticed that when using <ion-input> rather than the older <a class="item"> that a large amount of padding gets applied on the right.

    In many cases it seems this extra padding is unnecessary and limits the space available for text.

    I would of expected both approaches to work in the same way, but due to being given the .item-complex class it adopts the following padding...

    padding: $item-padding (ceil( ($item-padding * 3) + ($item-padding / 3) ) - 5) $item-padding $item-padding;

    ..., which is different from the default padding provided by a normal .item.

  4. jgw96 commented on Jan 17, 2017

    @jgw96
    Contributor

    This issue was moved to ionic-team/ionic-v1#197

  5. ionitron-bot commented on Sep 4, 2018

    @ionitron-bot

    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.

  6. locked and limited conversation to collaborators on Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions