docs(menu): document custom properties (#16249)

references #14850
This commit is contained in:
Cam Wiegert
2018-11-06 12:50:06 -06:00
committed by GitHub
parent 3ecefcbf1e
commit 6d3042efe5
4 changed files with 25 additions and 0 deletions

View File

@ -4,6 +4,10 @@
// -------------------------------------------------- // --------------------------------------------------
:host { :host {
/**
* @prop --color: Color of the menu button
*/
color: var(--color); color: var(--color);
pointer-events: all; pointer-events: all;

View File

@ -16,6 +16,13 @@ Menu Button is component that automatically creates the icon and functionality t
| `mode` | `mode` | The mode determines which platform styles to use. | `"ios" \| "md"` | `undefined` | | `mode` | `mode` | The mode determines which platform styles to use. | `"ios" \| "md"` | `undefined` |
## CSS Custom Properties
| Name | Description |
| --------- | ------------------------ |
| `--color` | Color of the menu button |
---------------------------------------------- ----------------------------------------------
*Built with [StencilJS](https://stenciljs.com/)* *Built with [StencilJS](https://stenciljs.com/)*

View File

@ -4,6 +4,11 @@
// -------------------------------------------------- // --------------------------------------------------
:host { :host {
/**
* @prop --background: Background of the menu
* @prop --width: Width of the menu
* @prop --width-small: Width of the small menu
*/
--width: #{$menu-width}; --width: #{$menu-width};
--width-small: #{$menu-small-width}; --width-small: #{$menu-small-width};
--background: #{$background-color}; --background: #{$background-color};

View File

@ -129,6 +129,15 @@ Type: `Promise<boolean>`
## CSS Custom Properties
| Name | Description |
| --------------- | ----------------------- |
| `--background` | Background of the menu |
| `--width` | Width of the menu |
| `--width-small` | Width of the small menu |
---------------------------------------------- ----------------------------------------------
*Built with [StencilJS](https://stenciljs.com/)* *Built with [StencilJS](https://stenciljs.com/)*