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

chips ripple doesn't extend to the end of the text #301

Closed
moog16 opened this issue Oct 2, 2018 · 12 comments
Closed

chips ripple doesn't extend to the end of the text #301

moog16 opened this issue Oct 2, 2018 · 12 comments
Labels
bug Something isn't working chips

Comments

@moog16
Copy link

moog16 commented Oct 2, 2018

Steps to repro:

  1. click on filter chip with no leading icon

result: notice when the checkmark animates in, the ripple doesn't extend to the end of the chip

@moog16 moog16 added the bug Something isn't working label Oct 2, 2018
@ghost
Copy link

ghost commented Mar 14, 2019

Can I ask you more detail about this issue?
I installed "@material/react-chips": "^0.10.0", but it looks to work well.

@moog16
Copy link
Author

moog16 commented Mar 14, 2019

@TroyTae - this bug is specifically regarding FilterChips without a leading icon. The ripple isn't calculated correctly since there is no leading icon, and when the filter chip animates in, it still thinks its the shorter length.

@moog16 moog16 added the chips label Mar 14, 2019
@ghost
Copy link

ghost commented Mar 15, 2019

Is there some bug replay code?
I test like this:
https://drive.google.com/open?id=17OgCyy24BA9j16utns3pADIx7Dird9Z9

@moog16
Copy link
Author

moog16 commented Mar 15, 2019

I actually don't think you have the ripple on there. Although I the video might be missing some frames. Can you confirm this?

@ghost
Copy link

ghost commented Mar 16, 2019

https://material-components.github.io/material-components-web-catalog/#/component/chips
Does MCW has same issue?
I can see that Ripple is appied my video and MCW example.
But when no leading icon Filter Chips, ripple doesn't spread from clicked point.

@moog16
Copy link
Author

moog16 commented Mar 18, 2019

Actually it looks like the chips catalog page isn't working. I think this is an existing bug.

Regarding the filter input chips it looks like the ripple isn't completely working in the React screenshot tests. So this is still most likely a bug.

Screen Shot 2019-03-18 at 11 55 46 AM

EDIT: I rechecked the web catalog, and it seems that chips only works if you navigate from the home page. The ripple there is working just fine. So if it still is an issue it is only happening in React land. We'll have to fix the issue shown in this screenshot to see if this is still a react issue.

@ghost
Copy link

ghost commented Mar 19, 2019

스크린샷 2019-03-19 오후 8 05 27
I cannot sure that our thought same.
I think material-components-web-react and material-components-web had same issue.
Chip's ripple can't calculate clicked point.
So style variable "translate-start" has NaN.
Is your thought the same?

@moog16
Copy link
Author

moog16 commented Mar 19, 2019

Ah you're correct - I thought that was working yesterday when I checked. That specific issue must be a MDC Web issue then. We cannot confirm if the chips ripple extends to the end of the text bug is fixed without fixing this bug first.

I confirmed this with this codepen.

@moog16
Copy link
Author

moog16 commented Mar 19, 2019

@TroyTae looks like there is already an MDC Web issue for it: material-components/material-components-web#2812

@ghost
Copy link

ghost commented Apr 9, 2019

@moog16
Copy link
Author

moog16 commented Apr 9, 2019

Cool! Looks like its in v1.1.1. Let's update chips to v1.1.1 in the feat/mdcweb-typescript-update branch.

@moog16
Copy link
Author

moog16 commented Apr 12, 2019

Closing for #804

@moog16 moog16 closed this as completed Apr 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working chips
Projects
None yet
Development

No branches or pull requests

1 participant