From d9b2d85ef22c3b6ccdb49499897c64620c10b8a2 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Thu, 12 Jan 2017 22:23:25 +0100 Subject: [PATCH] fix(select): transparent background when overscrolling (#2117) * fix(select): transparent background when overscrolling Fixes the select being transparent on browsers that allow overscrolling (mostly mobile). * Add the panel background after the animations are done. * Reduce expression verbosity * Reset the color on close. * Add a unit test to verify that the class is added to the panel. --- src/lib/select/_select-theme.scss | 2 +- src/lib/select/select.html | 5 +++-- src/lib/select/select.spec.ts | 16 +++++++++++++++- src/lib/select/select.ts | 5 +++++ 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/src/lib/select/_select-theme.scss b/src/lib/select/_select-theme.scss index 847a0728e47..bb33ea354fa 100644 --- a/src/lib/select/_select-theme.scss +++ b/src/lib/select/_select-theme.scss @@ -34,7 +34,7 @@ } } - .md-select-content { + .md-select-content, .md-select-panel-done-animating { background: md-color($background, card); } diff --git a/src/lib/select/select.html b/src/lib/select/select.html index 8c64b1567c5..a37b2f79661 100644 --- a/src/lib/select/select.html +++ b/src/lib/select/select.html @@ -5,11 +5,12 @@ -