-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Element] Add part
to pagination bullets and active pagination bullet
#6717
Comments
part
to pagination bullets and active pagination bullet
Hello, Team, I am trying to change the pagination bullet background color, |
@timeisgolden: Does that work for you? I tried this without explicit |
@strarsis |
Correct, the bullet – and ideally the state (active or not) – has to be added as |
@strarsis but I can't change the style of the button(active bullet) with my above code. |
@timeisgolden: The swiper component either has to be modified with JavaScript or a modified fork used instead. @nolimits4web: Adding those parts would be a tremendous help! |
Clear and concise description of the problem
For specific special styles to the swiper pagination bullets, each bullet needs to be an additional part.
Additionally, the active bullet needs to have a separate part name.
Suggested solution
Each bullet gets the part name
pagination-bullet
.The active bullet gets the part name
pagination-bullet--active
.Alternative
There are no real alternatives to adding those parts in core, except changing the swiper elements using JavaScript, which is neither robust nor having good performance.
Additional context
E.g.
aspect-ratio
;mask
;transition
andbackground
properties have to be added sometimes (for using a SVG shape which color can be changed).Component parts allow adding those styles cleanly and efficiently.
The selectors of a few swiper styles would need to be adjusted to work with a wrapper in between,
as direct descendant selectors are used.
Related: #6594
Validations
Would you like to open a PR for this feature?
The text was updated successfully, but these errors were encountered: