From 5f6f6a144eab64a800b3ce3036f147b2ca3b438c Mon Sep 17 00:00:00 2001 From: Cam Wiegert Date: Wed, 8 Aug 2018 13:06:37 -0500 Subject: [PATCH] fix(toast): add and document custom properties references #14850 --- core/src/components/toast/readme.md | 8 ++++++++ core/src/components/toast/test/standalone/index.html | 7 +++++++ core/src/components/toast/toast.ios.scss | 10 ++++++---- core/src/components/toast/toast.md.scss | 7 ++++--- core/src/components/toast/toast.scss | 10 ++++++++++ 5 files changed, 35 insertions(+), 7 deletions(-) diff --git a/core/src/components/toast/readme.md b/core/src/components/toast/readme.md index 995689e4a35..74ce9ab3db3 100644 --- a/core/src/components/toast/readme.md +++ b/core/src/components/toast/readme.md @@ -242,6 +242,14 @@ that is called in the same circustances. Present the toast overlay after it has been created. +## CSS Custom Properties + +| Name | Description | +| ---------------- | ------------------------ | +| `--background` | Background of the toast | +| `--button-color` | Color of the button text | +| `--color` | Color of the toast text | + ---------------------------------------------- diff --git a/core/src/components/toast/test/standalone/index.html b/core/src/components/toast/test/standalone/index.html index 65fa9f77e5e..0a709a161d0 100644 --- a/core/src/components/toast/test/standalone/index.html +++ b/core/src/components/toast/test/standalone/index.html @@ -17,6 +17,7 @@ + @@ -32,6 +33,12 @@ border-radius: 4px; margin-bottom: 8px; } + + .custom { + --background: papayawhip; + --button-color: blue; + --color: red; + }