From 5ba4f1748d5720c5ceaa1b64c5f42ad0eceab37b Mon Sep 17 00:00:00 2001 From: Marcos Moura Date: Mon, 19 Sep 2016 20:34:53 -0300 Subject: [PATCH] Update Switch Examples and add primary and warn colors --- src/components/mdSwitch/mdSwitch.theme | 31 ++++++++++- src/docs/pages/Switch.vue | 73 ++++++++++++++++---------- 2 files changed, 76 insertions(+), 28 deletions(-) diff --git a/src/components/mdSwitch/mdSwitch.theme b/src/components/mdSwitch/mdSwitch.theme index d466db3..97162d2 100644 --- a/src/components/mdSwitch/mdSwitch.theme +++ b/src/components/mdSwitch/mdSwitch.theme @@ -19,7 +19,36 @@ } } - &.md-disabled { + &.md-checked.md-primary { + .md-switch-container { + background-color: #{'PRIMARY-COLOR-500-0.5'}; + } + + .md-switch-thumb { + background-color: #{'PRIMARY-COLOR'}; + } + + .md-ink-ripple { + color: #{'PRIMARY-COLOR'}; + } + } + + &.md-checked.md-warn { + .md-switch-container { + background-color: #{'WARN-COLOR-500-0.5'}; + } + + .md-switch-thumb { + background-color: #{'WARN-COLOR'}; + } + + .md-ink-ripple { + color: #{'WARN-COLOR'}; + } + } + + &.md-disabled, + &.md-disabled.md-checked { .md-switch-container { background-color: rgba(#000, .12); } diff --git a/src/docs/pages/Switch.vue b/src/docs/pages/Switch.vue index 8668340..e28eaf4 100644 --- a/src/docs/pages/Switch.vue +++ b/src/docs/pages/Switch.vue @@ -1,39 +1,53 @@ - -