You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
disableRipple on list item leaves ripple class with overflow:hidden side effect #4156
What is the use-case or motivation for changing an existing behavior?
Justification here. The .mat-ripple class adds overflow: hidden.
It may be entirely valid that list items should always have overflow: hidden on their content, but that should be done explicitly and not through a side effect of the ripple class.
Agreed- there shouldn't be a overflow: hidden on the list item when the ripple is disabled. It would be even better if there wasn't an overflow: hidden on the list-item at all, even when the ripple is present.
I don't think it will be possible to drop the overflow: hidden when the ripple is present. The ripples are always big circles that would then overflow the list-item.
When the ripples are disabled, removing overflow: hidden can be done, but I'm not sure about that. It makes it more magic and could led to other side-changes in components.
Ahh ok. I initially read Jeremy's answer as proposing that the md-ripple directive automatically insert a child container with position: absolute, etc. I see now that he meant to create a child container just for this specific case.
Activity
jelbourn commentedon Apr 20, 2017
Agreed- there shouldn't be a
overflow: hiddenon the list item when the ripple is disabled. It would be even better if there wasn't anoverflow: hiddenon the list-item at all, even when the ripple is present.devversion commentedon Apr 21, 2017
I don't think it will be possible to drop the
overflow: hiddenwhen the ripple is present. The ripples are always big circles that would then overflow the list-item.When the ripples are disabled, removing
overflow: hiddencan be done, but I'm not sure about that. It makes it more magic and could led to other side-changes in components.jelbourn commentedon Apr 21, 2017
Why not have the ripple container be a child of the list item that is
position: absolute; left: 0; top: 0; right: 0; bottom: 0withoverflow: hidden?devversion commentedon Apr 21, 2017
That would be the easiest solution. I did something similar in Material 1 with the underlying button. I'll play with it.
willshowell commentedon Apr 26, 2017
I think that solution would solve #4275 too (assuming that 4275's issue is stacking context related)
devversion commentedon Apr 26, 2017
I don't really think that those issues relate together. Issue #4275 is about
overflow: hiddennot working due to a missingposition: relative.willshowell commentedon Apr 26, 2017
Ahh ok. I initially read Jeremy's answer as proposing that the
md-rippledirective automatically insert a child container withposition: absolute, etc. I see now that he meant to create a child container just for this specific case.devversion commentedon Apr 26, 2017
@willshowell Yeah exactly. Letting the
md-rippleservice take care of that would be really overkill.fix(list): remove overflow hidden from content
angular-automatic-lock-bot commentedon Sep 5, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.