The floating action button should have a shadow

This provokes a rendering bug in MojoShell but not in SkyShell.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/984793002
This commit is contained in:
Adam Barth 2015-03-05 17:56:15 -08:00
parent 2a9c2c40bf
commit 21012343aa

View File

@ -1,9 +1,6 @@
part of widgets;
class FloatingActionButton extends MaterialComponent {
// TODO(rafaelw): Ganesh has problems with box shadows
// box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
static final Style _style = new Style('''
position: absolute;
bottom: 16px;
@ -14,6 +11,7 @@ class FloatingActionButton extends MaterialComponent {
height: 56px;
background-color: ${Red[500]};
color: white;
box-shadow: ${Shadow[3]};
border-radius: 28px;'''
);
static final Style _clipStyle = new Style('''