From ee6b3d4d41878430411762ccc54ca84dbce89547 Mon Sep 17 00:00:00 2001 From: Marcos Moura Date: Tue, 10 Jan 2017 00:40:59 -0200 Subject: [PATCH] remove ripple directive and use the new component --- docs/src/pages/components/BottomBar.vue | 6 + docs/src/pages/components/Card.vue | 8 +- docs/src/pages/components/Checkbox.vue | 20 +-- src/components/mdBottomBar/mdBottomBar.scss | 4 + src/components/mdBottomBar/mdBottomBar.theme | 10 +- .../mdBottomBar/mdBottomBarItem.vue | 9 +- src/components/mdCheckbox/mdCheckbox.theme | 44 ++++--- src/components/mdCheckbox/mdCheckbox.vue | 3 +- src/components/mdRadio/mdRadio.vue | 3 +- src/components/mdSwitch/mdSwitch.vue | 3 +- src/components/mdTable/mdTableHead.vue | 4 +- src/core/components/mdInkRipple/index.js | 115 ------------------ .../components/mdInkRipple/mdInkRipple.scss | 12 +- 13 files changed, 77 insertions(+), 164 deletions(-) diff --git a/docs/src/pages/components/BottomBar.vue b/docs/src/pages/components/BottomBar.vue index bf3635b..16b292f 100644 --- a/docs/src/pages/components/BottomBar.vue +++ b/docs/src/pages/components/BottomBar.vue @@ -60,6 +60,12 @@ String Create a anchor on the item - In this case the generated tag will be <a>. + + + disabled + Boolean + Disable the item and prevent his actions. Default false + diff --git a/docs/src/pages/components/Card.vue b/docs/src/pages/components/Card.vue index e9612f3..4d15574 100644 --- a/docs/src/pages/components/Card.vue +++ b/docs/src/pages/components/Card.vue @@ -362,8 +362,10 @@ - + People + + @@ -425,8 +427,10 @@ </md-card> <md-card md-with-hover> - <md-card-media v-md-ink-ripple> + <md-card-media> <img src="assets/card-image-1.jpg" alt="People"> + + <md-ink-ripple></md-ink-ripple> </md-card-media> <md-card-actions> diff --git a/docs/src/pages/components/Checkbox.vue b/docs/src/pages/components/Checkbox.vue index 2ff7c5d..58cf13a 100644 --- a/docs/src/pages/components/Checkbox.vue +++ b/docs/src/pages/components/Checkbox.vue @@ -89,20 +89,20 @@
- Primary Orange - Primary Green - Primary Light Blue - Primary Indigo - Primary Brown Disabled + Primary Orange + Primary Green + Primary Light Blue + Primary Indigo + Primary Brown Disabled
- <md-checkbox md-name="orange" id="my-test5" name="my-test5" v-model="checkbox2" class="md-primary">Primary Orange</md-checkbox> - <md-checkbox md-name="green" id="my-test6" name="my-test6" v-model="checkbox2" class="md-primary">Primary Green</md-checkbox> - <md-checkbox md-name="light-blue" id="my-test7" name="my-test7" v-model="checkbox2" class="md-primary">Primary Light Blue</md-checkbox> - <md-checkbox md-name="indigo" id="my-test8" name="my-test8" v-model="checkbox2" class="md-primary">Primary Indigo</md-checkbox> - <md-checkbox md-name="brown" id="my-test9" name="my-test9" v-model="checkbox2" class="md-primary" disabled>Primary Brown Disabled</md-checkbox> + <md-checkbox md-theme="orange" id="my-test5" name="my-test5" v-model="checkbox2" class="md-primary">Primary Orange</md-checkbox> + <md-checkbox md-theme="green" id="my-test6" name="my-test6" v-model="checkbox2" class="md-primary">Primary Green</md-checkbox> + <md-checkbox md-theme="light-blue" id="my-test7" name="my-test7" v-model="checkbox2" class="md-primary">Primary Light Blue</md-checkbox> + <md-checkbox md-theme="indigo" id="my-test8" name="my-test8" v-model="checkbox2" class="md-primary">Primary Indigo</md-checkbox> + <md-checkbox md-theme="brown" id="my-test9" name="my-test9" v-model="checkbox2" class="md-primary" disabled>Primary Brown Disabled</md-checkbox>
diff --git a/src/components/mdBottomBar/mdBottomBar.scss b/src/components/mdBottomBar/mdBottomBar.scss index d3e28f1..562d5d4 100644 --- a/src/components/mdBottomBar/mdBottomBar.scss +++ b/src/components/mdBottomBar/mdBottomBar.scss @@ -45,6 +45,10 @@ } } + &[disabled] { + opacity: .38; + } + .md-bottom-bar.md-shift & { min-width: 56px; max-width: 96px; diff --git a/src/components/mdBottomBar/mdBottomBar.theme b/src/components/mdBottomBar/mdBottomBar.theme index 4311b36..9ed1338 100644 --- a/src/components/mdBottomBar/mdBottomBar.theme +++ b/src/components/mdBottomBar/mdBottomBar.theme @@ -6,7 +6,7 @@ .md-bottom-bar-item { color: #{'BACKGROUND-CONTRAST-0.54'}; - &:hover:not(.md-active) { + &:hover:not([disabled]):not(.md-active) { color: #{'BACKGROUND-CONTRAST-0.87'}; } @@ -47,7 +47,7 @@ .md-bottom-bar-item { color: #{'PRIMARY-CONTRAST-0.54'}; - &:hover:not(.md-active) { + &:hover:not([disabled]):not(.md-active) { color: #{'PRIMARY-CONTRAST-0.87'}; } @@ -62,7 +62,7 @@ .md-bottom-bar-item { color: #{'ACCENT-CONTRAST-0.54'}; - &:hover:not(.md-active) { + &:hover:not([disabled]):not(.md-active) { color: #{'ACCENT-CONTRAST-0.87'}; } @@ -78,7 +78,7 @@ .md-bottom-bar-item { color: #{'WARN-CONTRAST-0.54'}; - &:hover:not(.md-active) { + &:hover:not([disabled]):not(.md-active) { color: #{'WARN-CONTRAST-0.87'}; } @@ -94,7 +94,7 @@ .md-bottom-bar-item { color: #{'BACKGROUND-CONTRAST-0.54'}; - &:hover:not(.md-active) { + &:hover:not([disabled]):not(.md-active) { color: #{'BACKGROUND-CONTRAST-0.87'}; } diff --git a/src/components/mdBottomBar/mdBottomBarItem.vue b/src/components/mdBottomBar/mdBottomBarItem.vue index c043c27..bddc876 100644 --- a/src/components/mdBottomBar/mdBottomBarItem.vue +++ b/src/components/mdBottomBar/mdBottomBarItem.vue @@ -1,15 +1,19 @@