fix(ripple-effect): add and document custom properties

references #14850
This commit is contained in:
Cam Wiegert
2018-08-24 09:57:39 -05:00
parent e0b8e2472d
commit 37a149cd5d
2 changed files with 13 additions and 1 deletions

View File

@@ -21,6 +21,13 @@ The ripple effect component adds the [Material Design ink ripple interaction eff
| `addRipple` | Adds the ripple effect to the parent element |
## CSS Custom Properties
| Name | Description |
| -------------- | ------------------------------- |
| `--background` | Background of the ripple effect |
----------------------------------------------
*Built with [StencilJS](https://stenciljs.com/)*

View File

@@ -5,6 +5,11 @@
// --------------------------------------------------
:host {
/**
* @prop --background: Background of the ripple effect
*/
--background: currentColor;
@include position(0, 0, 0, 0);
position: absolute;
@@ -17,7 +22,7 @@
position: absolute;
background-color: currentColor;
background: var(--background);
color: inherit;
contain: strict;