[Ionic v4] Allow swiper-pagination to be styled
See original GitHub issueIonic Info @ionic/angular: “4.0.0-beta.1”
Describe the Feature Request
I would like to be able to style the swiper-pagination
element of the slides
For example, in my v3 app, I display the pagination as progressbar
at the bottom of the slides
Because of shadow dom, this isn’t possible anymore, a style like the following won’t be applied
div.swiper-pagination.swiper-pagination-progressbar {
top: inherit;
bottom: 0;
}
Related Code
slideOptsProgressbar: SwiperOptions = {
pagination: {
el: '.swiper-pagination',
type: 'progressbar'
}
};
<ion-slides pager="true" [options]="slideOptsProgressbar">
</ion-slides>
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Set Up Swiper.js for Angular Slides [Example] - Ionic Framework
Read this guide to learn how to get Swiper.js for Angular set up in your Ionic Framework application for a modern touch slider...
Read more >How to use Swiper with Ionic (instead of ion-slides) - YouTube
In this video we will implement the Swiper component without ion -slides, since it will be deprecated with Framework v6! Learn...
Read more >Ionic - Pagination is being hidden with new ion-slides ...
What I did was create my own custom pagination as this way the ng-hide class doesn't get added, luckily Swiper allows you to...
Read more >Ionic 6 Slides using Swiper.js Tutorial by Examples
Step 1 – Install Required Packages · Step 2 – Import SwiperModule · Step 3 – Add SCSS Style Swiper Libs · Step...
Read more >Swiper API
swiper /css - all Swiper styles including all modules styles (like Navigation, Pagination, etc.) swiper/css/bundle - same as previous but minified.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Do you like hacks? Do you like having the pagination of your swiper positioned at the bottom of your slider but without touching the nested element?
Here you go: the tricks is to declare the swiper options as
custom
but to actually render a slider asprogressBar
but with a bottom position 😜enjoy
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.