-
Notifications
You must be signed in to change notification settings - Fork 3.4k
fix(datepicker): ensure the element always blends in with it's parent #7603
Conversation
I'm not quite sure that we'd be able to accommodate for all of these cases though (e.g. a grandparent having a background etc.). The alternative could be to set it as transparent and have it inherit only when it's open? |
I think transparent is okay, but I currently don't understand why we're even setting the background for input elements at all. Is there ever a case in the spec where it doesn't have the same background as the parent container? |
I don't think so. I'll make it transparent and try out a few more scenarios just in case. |
c1ce145
to
bd2fb5c
Compare
I've updated it @topherfangio. Now it's transparent when closed and when it's open, it uses the body background. I also managed to fix an issue where the datepicker would push it's surrounding content when it gets opened. |
* Makes the datepicker component transparent so it always blends in with it's parent. * Prevents the content around a datepicker from jumping when it gets opened. Closes angular#7502.
07d5aa9
to
e58972a
Compare
LGTM 👍 |
* Makes the datepicker component transparent so it always blends in with it's parent. * Prevents the content around a datepicker from jumping when it gets opened. Closes angular#7502. Closes angular#7603
fix(datepicker): ensure the element always blends in with it's parent
Closes #7502.