Ionic-framework: chips: UI is messed up

Created on 10 Feb 2016  路  13Comments  路  Source: ionic-team/ionic-framework

Need to fix the UI for this, add them to e2e tests and then get them documented when we feel comfortable with them.

help wanted

Most helpful comment

We could probably make this into a component.

All 13 comments

We could probably make this into a component.

@brandyscarney hey do you know if there is other way of doing chips in ionic? I need chips in my app but I'm using 1.3.1, I don't want to update just for this. Do you know where I can find documentation about how to use chips in ionic also?

@brandyscarney hey I am expecting this in beta.11.hope I will get this.thanks

@cesar-oyarzun-m Right now the chip component is purely css. All of the Sass is here: https://github.com/driftyco/ionic/blob/master/src/components/chip/chip.scss

And the different ways to write it are in each of these folders: https://github.com/driftyco/ionic/tree/master/src/components/chip/test

It probably depends some on other component styling but it can be added with css.

I would like to try my hand at fixing this, turning it into a component, and helping with the documentation for it.

I've read the contributing guide and forked the repo. Should I create a pull request now or after the work is done?

Hello @leetheguy ! Awesome to hear that you're interested in contributing to Ionic! I would recommend getting it good and solid on your local machine before submitting a pr. Also, here are a few tips for contributing:

  1. git status will help you keep track of your changes
  2. Try to keep the number of commits to a minimum if possible
  3. Try to make sure your commit messages are concise if possible
  4. Make sure you have a ton of fun and feel free to reach out and ask questions if needed!

Thanks!

Cleaned this up. Fixed the CSS. Made it into a component. X button works. Added whitelist control for elements so only those in the spec (avatar, image, text) can be added. The e2e looks good. No documentation yet. Creating pr.

Hi All!

Chip with icon is messed up in RC

chip rc

And if you try to add padding-left

chip rc padding

    <ion-chip>
        <ion-icon padding-left name="cart"></ion-icon>
        <ion-label>Default</ion-label>
    </ion-chip>

worked it around this way

.mainStyles {
    ion-chip{
        ion-icon{
            padding-top: 1px;
            padding-left: 8px;
        }
    }
}

Are you seeing all seeing it ok?

Thanks!

@devarg I'm not seeing any issues with the icon alignment. Is there a repository where I can reproduce this?

screen shot 2016-10-25 at 5 18 53 pm

@brandyscarney After further inspection the chips work fine alone, but when used inside <ion-item> they have UI issues. Here is a repo demonstrating the issue.

https://github.com/nakulgulati/ionic-chips

Also here is a screenshot
screen shot 2016-10-26 at 03 17 23

Ah okay thank you!

Can anyone tell when chips will be available for use in prod.?

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

manucorporat picture manucorporat  路  3Comments

danbucholtz picture danbucholtz  路  3Comments

alan-agius4 picture alan-agius4  路  3Comments

SebastianGiro picture SebastianGiro  路  3Comments

gio82 picture gio82  路  3Comments