Skip to content

Commit b23c759

Browse files
docs(slides): document css vars (#19872)
1 parent 1ab7066 commit b23c759

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

core/api.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,6 +1091,10 @@ ion-slides,event,ionSlideTransitionStart,void,true
10911091
ion-slides,event,ionSlideWillChange,void,true
10921092
ion-slides,css-prop,--bullet-background
10931093
ion-slides,css-prop,--bullet-background-active
1094+
ion-slides,css-prop,--progress-bar-background
1095+
ion-slides,css-prop,--progress-bar-background-active
1096+
ion-slides,css-prop,--scroll-bar-background
1097+
ion-slides,css-prop,--scroll-bar-background-active
10941098

10951099
ion-spinner,shadow
10961100
ion-spinner,prop,color,string | undefined,undefined,false,false

core/src/components/slides/readme.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -761,10 +761,14 @@ Type: `Promise<void>`
761761

762762
## CSS Custom Properties
763763

764-
| Name | Description |
765-
| ---------------------------- | ------------------------------------------ |
766-
| `--bullet-background` | Background of the pagination bullets |
767-
| `--bullet-background-active` | Background of the active pagination bullet |
764+
| Name | Description |
765+
| ---------------------------------- | ------------------------------------------------ |
766+
| `--bullet-background` | Background of the pagination bullets |
767+
| `--bullet-background-active` | Background of the active pagination bullet |
768+
| `--progress-bar-background` | Background of the pagination progress-bar |
769+
| `--progress-bar-background-active` | Background of the active pagination progress-bar |
770+
| `--scroll-bar-background` | Background of the pagination scroll-bar |
771+
| `--scroll-bar-background-active` | Background of the active pagination scroll-bar |
768772

769773

770774
----------------------------------------------

core/src/components/slides/slides.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ ion-slides {
88
/**
99
* @prop --bullet-background: Background of the pagination bullets
1010
* @prop --bullet-background-active: Background of the active pagination bullet
11+
*
12+
* @prop --progress-bar-background: Background of the pagination progress-bar
13+
* @prop --progress-bar-background-active: Background of the active pagination progress-bar
14+
*
15+
* @prop --scroll-bar-background: Background of the pagination scroll-bar
16+
* @prop --scroll-bar-background-active: Background of the active pagination scroll-bar
1117
*/
1218
display: block;
1319

0 commit comments

Comments
 (0)