Skip to content
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

Feature request: igx-chip - capability to see whole text when a long text is in it. #3032

Closed
tkiryu opened this issue Nov 19, 2018 · 5 comments

Comments

@tkiryu
Copy link

tkiryu commented Nov 19, 2018

Description

I'd like to have a capability to see the whole text in igx-chip.

  • igniteui-angular version: 6.2.0
  • browser: N/A

Steps to reproduce

  1. Go to https://stackblitz.com/edit/igx-chips-on-grouping-area
  2. You can see igx-chip which has a text with ellipsis on group area.

Result

Currently, we cannot see the whole text in igx-chip.

Expected result

I'd like to have a capability to see the whole text in it.

For example,

Attachments

https://stackblitz.com/edit/igx-chips-on-grouping-area

@simeonoff
Copy link
Collaborator

We can add the title attribute to the chips in the grouparea and bind it to the area of the column name so that the full text can be previewed on mouse hover? How does that sound to you @tkiryu ?

@kdinev
Copy link
Member

kdinev commented Nov 19, 2018

@tkiryu The chip is designed to show limited content inside, which is why it has min and max dimensions by default. If you as a developer want to change the maximum dimensions, then you can do so by using:

.igx-chip__content {
  max-width: 300px;
}

The reason for constraining the chip is in cases when the content put inside is very large, we don't want to make the chip grow indefinitely and make it look ugly inside the application. Example:

image

Any kind of expandable functionality is up to the developer to implement, using the chip outputs that we've exposed. You can take the material guidelines as example and put in place some expandable functionality.

@kdinev
Copy link
Member

kdinev commented Nov 19, 2018

@tkiryu I've logged an enhancement issue to add a title attribute to each chip. #3035

@tkiryu
Copy link
Author

tkiryu commented Nov 19, 2018

@simeonoff , thank you for your suggestion! I think that's enough!

@tkiryu
Copy link
Author

tkiryu commented Nov 19, 2018

@kdinev , thank you for your explanation. I agree with you. Thank you for logging #3035!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants