Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 23adaa5

Browse files
fix(#48): pager position in case of RTL
1 parent 230f224 commit 23adaa5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

doc/features/navigation.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ await deck.getLength(); // resolve a number
109109

110110
[DeckDeckGo] will per default display a pager in form of a progress circle bar. It's possible to hide it or to customize the following various style options.
111111

112+
Also worth to notice that the pager inherits per default the document and deck direction (LTR or RTL for example).
113+
112114
### Show or hide
113115

114116
The show or hide options of the pager are available on the `<deckgo-deck>` element.
@@ -134,5 +136,7 @@ The following style options are available to style the pager:
134136
| --pager-text-size | 0.5em |
135137
| --pager-stroke-outer-width | 2.8 |
136138
| --pager-stroke-inner-width | 1.8 |
139+
| --pager-position-left | |
140+
| --pager-position-right | |
137141

138142
[DeckDeckGo]: https://deckdeckgo.com

src/components/deck/deckdeckgo-deck/deckdeckgo-deck.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ div.deckgo-deck {
2121
div.deckgo-pager {
2222
position: absolute;
2323
bottom: 0;
24-
left: 0;
24+
left: var(--pager-position-left);
25+
right: var(--pager-position-right);
2526
}
2627

2728
::slotted([slot="background"]) {

0 commit comments

Comments
 (0)