From c7c3b8cf56c2f87130d8ca485b4701469a2328a5 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Wed, 24 Jan 2018 18:20:10 -0500 Subject: [PATCH] fix(note): add tests and font family for note as standalone --- .../components/badge/test/basic/index.html | 4 +- .../core/src/components/note/note.ios.scss | 2 + .../src/components/note/note.ios.vars.scss | 5 +- .../core/src/components/note/note.md.scss | 2 + .../src/components/note/note.md.vars.scss | 5 +- .../src/components/note/test/basic/index.html | 95 +++++++++++++++++++ .../note/test/standalone/index.html | 35 +++++++ 7 files changed, 144 insertions(+), 4 deletions(-) create mode 100644 packages/core/src/components/note/test/basic/index.html create mode 100644 packages/core/src/components/note/test/standalone/index.html diff --git a/packages/core/src/components/badge/test/basic/index.html b/packages/core/src/components/badge/test/basic/index.html index 8a08ca17a3..51128501c5 100644 --- a/packages/core/src/components/badge/test/basic/index.html +++ b/packages/core/src/components/badge/test/basic/index.html @@ -21,7 +21,7 @@ Badges Right - 99 + 99 Default Badge @@ -53,7 +53,7 @@ Badges Left - 99 + 99 Default Badge diff --git a/packages/core/src/components/note/note.ios.scss b/packages/core/src/components/note/note.ios.scss index 1a9c50f7cd..87d71ffc7a 100644 --- a/packages/core/src/components/note/note.ios.scss +++ b/packages/core/src/components/note/note.ios.scss @@ -4,6 +4,8 @@ // -------------------------------------------------- .note-ios { + font-family: $note-ios-font-family; + color: $note-ios-color; } diff --git a/packages/core/src/components/note/note.ios.vars.scss b/packages/core/src/components/note/note.ios.vars.scss index 1061a24b3d..e45695ef90 100644 --- a/packages/core/src/components/note/note.ios.vars.scss +++ b/packages/core/src/components/note/note.ios.vars.scss @@ -3,5 +3,8 @@ // iOS Note // -------------------------------------------------- +/// @prop - Font family of the note +$note-ios-font-family: $font-family-ios-base !default; + /// @prop - Text color of the note -$note-ios-color: darken($list-ios-border-color, 10%) !default; +$note-ios-color: darken($list-ios-border-color, 10%) !default; diff --git a/packages/core/src/components/note/note.md.scss b/packages/core/src/components/note/note.md.scss index df0605d513..1061b45e96 100644 --- a/packages/core/src/components/note/note.md.scss +++ b/packages/core/src/components/note/note.md.scss @@ -4,6 +4,8 @@ // -------------------------------------------------- .note-md { + font-family: $note-md-font-family; + color: $note-md-color; } diff --git a/packages/core/src/components/note/note.md.vars.scss b/packages/core/src/components/note/note.md.vars.scss index f09d7ea38b..4537ce4576 100644 --- a/packages/core/src/components/note/note.md.vars.scss +++ b/packages/core/src/components/note/note.md.vars.scss @@ -3,5 +3,8 @@ // Material Design Note // -------------------------------------------------- +/// @prop - Font family of the note +$note-md-font-family: $font-family-md-base !default; + /// @prop - Text color of the note -$note-md-color: darken($list-md-border-color, 10%) !default; +$note-md-color: darken($list-md-border-color, 10%) !default; diff --git a/packages/core/src/components/note/test/basic/index.html b/packages/core/src/components/note/test/basic/index.html new file mode 100644 index 0000000000..8a0ecdeafb --- /dev/null +++ b/packages/core/src/components/note/test/basic/index.html @@ -0,0 +1,95 @@ + + + + + + Note - Basic + + + + + + + + + + Note - Basic + + + + + + Notes Right + + 99 + Default Note + + + 99 + Primary Note + + + 99 + Secondary Note + + + 99 + Danger Note + + + 99 + Light Note + + + 99 + Dark Note + + + primary + Dynamic Note Color (toggle) + + + + + Notes Left + + 99 + Default Note + + + 99 + Primary Note + + + 99 + Secondary Note + + + 99 + Danger Note + + + 99 + Light Note + + + 99 + Dark Note + + + + + + + + + + diff --git a/packages/core/src/components/note/test/standalone/index.html b/packages/core/src/components/note/test/standalone/index.html new file mode 100644 index 0000000000..b891026531 --- /dev/null +++ b/packages/core/src/components/note/test/standalone/index.html @@ -0,0 +1,35 @@ + + + + + + Note - Standalone + + + + + + + Default Note + + + Primary Note + Secondary Note + Danger Note + Light Note + Dark Note + + + + + Note (End) + On + + + + Off + Note (Start) + + + +