mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(ripple-effect): add and document custom properties
references #14850
This commit is contained in:
@@ -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/)*
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user