Skip to content

Commit

Permalink
feat(bottom-navigation): box-shadow for scrolled state
Browse files Browse the repository at this point in the history
  • Loading branch information
Troy Tae committed Aug 26, 2019
1 parent 533fe6b commit c8cb97e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/mdc-bottom-navigation/mdc-bottom-navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
// THE SOFTWARE.
//

@import "@material/elevation/mixins";
@import "./mixins";
@import "./variables";
@include mdc-bottom-navigation-menu-ripple;
Expand All @@ -34,6 +35,12 @@
text-align: center;
z-index: 4;

&--scrolled {
@include mdc-elevation(4);

transition: box-shadow 200ms linear;
}

&__icon {
@include mdc-bottom-navigation-menu-icon-color(on-primary);

Expand Down
10 changes: 10 additions & 0 deletions packages/mdc-bottom-navigation/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/mdc-bottom-navigation/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"dependencies": {
"@material/elevation": "^3.1.0",
"@material/feature-targeting": "^3.1.0",
"@material/ripple": "^3.1.0",
"@material/theme": "^3.1.0",
Expand Down

0 comments on commit c8cb97e

Please sign in to comment.