From 94c6c59285a6ef695297b34b022fafa5bf84ff9d Mon Sep 17 00:00:00 2001 From: stasson Date: Sat, 10 Feb 2018 18:59:18 +0100 Subject: [PATCH] feat(drawer): add support for drawer-item activated style closes #247 --- components/drawer/README.md | 1 + components/drawer/mdc-drawer-item.vue | 19 ++++++++++++++++--- demo/styles/demo.scss | 4 ---- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/components/drawer/README.md b/components/drawer/README.md index 05e8eb55..c583e529 100644 --- a/components/drawer/README.md +++ b/components/drawer/README.md @@ -80,6 +80,7 @@ By default the drawer component is responsive and will switch from temporary to |`exact`|Boolean| false | router-link property _(*)_ | |`active-class`|String| router-link-active | router-link property _(*)_ | |`exact-active-class`|String| router-link-exact-active | router-link property _(*)_ | +|`activated`|Boolean| undefined | whether this item is selected (not needed if router-link mode is used) | > _(*)_ Requires [vue-router](https://router.vuejs.org) > If the `to` property is defined, the item behaves as a diff --git a/components/drawer/mdc-drawer-item.vue b/components/drawer/mdc-drawer-item.vue index 12fca473..b316c523 100644 --- a/components/drawer/mdc-drawer-item.vue +++ b/components/drawer/mdc-drawer-item.vue @@ -1,7 +1,7 @@