Commit 21012343 authored by Adam Barth's avatar Adam Barth

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
parent 2a9c2c40
part of widgets; part of widgets;
class FloatingActionButton extends MaterialComponent { 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(''' static final Style _style = new Style('''
position: absolute; position: absolute;
bottom: 16px; bottom: 16px;
...@@ -14,6 +11,7 @@ class FloatingActionButton extends MaterialComponent { ...@@ -14,6 +11,7 @@ class FloatingActionButton extends MaterialComponent {
height: 56px; height: 56px;
background-color: ${Red[500]}; background-color: ${Red[500]};
color: white; color: white;
box-shadow: ${Shadow[3]};
border-radius: 28px;''' border-radius: 28px;'''
); );
static final Style _clipStyle = new Style(''' static final Style _clipStyle = new Style('''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment