Skip to content

Commit

Permalink
docs(slides): document css vars (#19872)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandyscarney committed Nov 8, 2019
1 parent 1ab7066 commit b23c759
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
4 changes: 4 additions & 0 deletions core/api.txt
Expand Up @@ -1091,6 +1091,10 @@ ion-slides,event,ionSlideTransitionStart,void,true
ion-slides,event,ionSlideWillChange,void,true
ion-slides,css-prop,--bullet-background
ion-slides,css-prop,--bullet-background-active
ion-slides,css-prop,--progress-bar-background
ion-slides,css-prop,--progress-bar-background-active
ion-slides,css-prop,--scroll-bar-background
ion-slides,css-prop,--scroll-bar-background-active

ion-spinner,shadow
ion-spinner,prop,color,string | undefined,undefined,false,false
Expand Down
12 changes: 8 additions & 4 deletions core/src/components/slides/readme.md
Expand Up @@ -761,10 +761,14 @@ Type: `Promise<void>`

## CSS Custom Properties

| Name | Description |
| ---------------------------- | ------------------------------------------ |
| `--bullet-background` | Background of the pagination bullets |
| `--bullet-background-active` | Background of the active pagination bullet |
| Name | Description |
| ---------------------------------- | ------------------------------------------------ |
| `--bullet-background` | Background of the pagination bullets |
| `--bullet-background-active` | Background of the active pagination bullet |
| `--progress-bar-background` | Background of the pagination progress-bar |
| `--progress-bar-background-active` | Background of the active pagination progress-bar |
| `--scroll-bar-background` | Background of the pagination scroll-bar |
| `--scroll-bar-background-active` | Background of the active pagination scroll-bar |


----------------------------------------------
Expand Down
6 changes: 6 additions & 0 deletions core/src/components/slides/slides.scss
Expand Up @@ -8,6 +8,12 @@ ion-slides {
/**
* @prop --bullet-background: Background of the pagination bullets
* @prop --bullet-background-active: Background of the active pagination bullet
*
* @prop --progress-bar-background: Background of the pagination progress-bar
* @prop --progress-bar-background-active: Background of the active pagination progress-bar
*
* @prop --scroll-bar-background: Background of the pagination scroll-bar
* @prop --scroll-bar-background-active: Background of the active pagination scroll-bar
*/
display: block;

Expand Down

0 comments on commit b23c759

Please sign in to comment.