docs(components): document what start and end mean for CSS variables (#18538)

This commit is contained in:
Brandy Carney
2019-06-21 15:11:07 -04:00
committed by GitHub
parent 26ecf2b10f
commit 73599c22aa
34 changed files with 380 additions and 355 deletions

View File

@ -175,17 +175,17 @@ export const TabButtonExample: React.FunctionComponent = () => (
## CSS Custom Properties
| Name | Description |
| ---------------------- | ------------------------------------ |
| `--background` | Background of the tab button |
| `--background-focused` | Background of the focused tab button |
| `--color` | Color of the tab button |
| `--color-selected` | Color of the selected tab button |
| `--padding-bottom` | Bottom padding of the tab button |
| `--padding-end` | End padding of the tab button |
| `--padding-start` | Start padding of the tab button |
| `--padding-top` | Top padding of the tab button |
| `--ripple-color` | Color of the button ripple effect |
| Name | Description |
| ---------------------- | ------------------------------------------------------------------------------------------------------------- |
| `--background` | Background of the tab button |
| `--background-focused` | Background of the tab button when focused with the tab key |
| `--color` | Color of the tab button |
| `--color-selected` | Color of the selected tab button |
| `--padding-bottom` | Bottom padding of the tab button |
| `--padding-end` | Right padding if direction is left-to-right, and left padding if direction is right-to-left of the tab button |
| `--padding-start` | Left padding if direction is left-to-right, and right padding if direction is right-to-left of the tab button |
| `--padding-top` | Top padding of the tab button |
| `--ripple-color` | Color of the button ripple effect |
## Dependencies

View File

@ -3,15 +3,15 @@
:host {
/**
* @prop --background: Background of the tab button
* @prop --background-focused: Background of the focused tab button
* @prop --background-focused: Background of the tab button when focused with the tab key
*
* @prop --color: Color of the tab button
* @prop --color-selected: Color of the selected tab button
*
* @prop --padding-top: Top padding of the tab button
* @prop --padding-end: End padding of the tab button
* @prop --padding-end: Right padding if direction is left-to-right, and left padding if direction is right-to-left of the tab button
* @prop --padding-bottom: Bottom padding of the tab button
* @prop --padding-start: Start padding of the tab button
* @prop --padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the tab button
*
* @prop --ripple-color: Color of the button ripple effect
*/
@ -24,7 +24,7 @@
justify-content: center;
height: 100%;
outline: none;
background: var(--background);