From 88ab4f9ee59c3abc0a813eed767c99083e97a2de Mon Sep 17 00:00:00 2001 From: Cam Wiegert Date: Thu, 30 Aug 2018 13:50:39 -0500 Subject: [PATCH] docs(note): document custom properties references #14850 --- core/src/components/note/note.scss | 4 ++++ core/src/components/note/readme.md | 7 +++++++ core/src/components/note/test/standalone/index.html | 9 +++++++++ 3 files changed, 20 insertions(+) diff --git a/core/src/components/note/note.scss b/core/src/components/note/note.scss index b3a2300a50..dacbaaffc8 100644 --- a/core/src/components/note/note.scss +++ b/core/src/components/note/note.scss @@ -4,6 +4,10 @@ // -------------------------------------------------- :host { + /** + * @prop --color: Color of the note + */ + color: var(--color); font-family: $font-family-base; diff --git a/core/src/components/note/readme.md b/core/src/components/note/readme.md index d23009d987..76e5b53928 100644 --- a/core/src/components/note/readme.md +++ b/core/src/components/note/readme.md @@ -14,6 +14,13 @@ Notes are text elements generally used as subtitles that provide more informatio | `mode` | `mode` | The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. | `Mode` | +## CSS Custom Properties + +| Name | Description | +| --------- | ----------------- | +| `--color` | Color of the note | + + ---------------------------------------------- *Built with [StencilJS](https://stenciljs.com/)* diff --git a/core/src/components/note/test/standalone/index.html b/core/src/components/note/test/standalone/index.html index 551a619dc3..3566a1efc5 100644 --- a/core/src/components/note/test/standalone/index.html +++ b/core/src/components/note/test/standalone/index.html @@ -13,6 +13,9 @@ Default Note + + Custom Note + Primary Note Secondary Note @@ -36,5 +39,11 @@ Note (Start) + +