-
Notifications
You must be signed in to change notification settings - Fork 3.4k
fix(list): item-inner shouldn't be wider than the container #7531
Conversation
LGTM needs to manual tested |
@EladBezalel Thanks 👍 This should be tested manually as soon as possible, because the overflow seems to be broken in some specific layouts. |
bf4207b
to
52a8c40
Compare
* List Item Content should be not wider than the container, this will cause overflow issues * Background Color of the Button Wrap should not inherit its parent, otherwise the text will be unreadable, if the button overlays with a fixed background color Fixes angular#7551 Fixes angular#7525
52a8c40
to
f39c13c
Compare
margin: 0; | ||
|
||
// The button should not inherit the parents background color. | ||
background-color: initial; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you have this here. Is the rule specified in the Design specifications?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, that's just our button wrap, it's just executing the ripple and the click attributes. It should not inherit the background, otherwise the text content will be invisible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not understand the need for this setting. I see no difference with or without this setting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The button wrap, has the _md-no-style
class applied, which removes all the needed stylings.
And _md-no-style
applies the background color inheritance to the button wrap, which is a bug, because the button wrap, should be transparent, as it is by default.
So now if remove the inheritance, the background-color won't be red anymore.
This is a bug, because this is our executor and ripple
wrap, which overlays over the actual list. So that means, if it has the inherited background-color, the complete list will be invisible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
initial
is not supported in IE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already talked about that with Thomas, IE11 doesn't need this property, because the bug isn't present there. So this will be just an unnecessary property on IE11
This fixes a overflow issue - when being in a flex layout.
Fixes #7551 Fixes #7525