Target pagination dots
-
How do I target pagination dots in multi step (page break) forms?
In default appearance, the colors for current step and previous steps are all the same (Current state colors) and next steps are a different color (Default state colors).
When I target each step dot through additional CSS:.forminator-step-10 .forminator-step-dot {
background-color: red !important;
}I can also use “aria-selected” to target the current step dot:
.forminator-step-10[aria-selected="true"] .forminator-step-dot {
background-color: blue !important;
}but this results in only the current step dot being that blue color, not the previous steps with custom colors. They revert back to their custom colors.
What I wish is the following:
1. Choose default color for all unfinished (on the right of the current) steps (red)
2. Change current step dot color by targeting each step dot (step-1 dot:pink, step-2 dot:blue etc.)
3. All previous (finished, on the left of the current) steps to keep their new custom color (pink, blue)
I cannot figure out how to actually target previous steps without targeting next steps. Does the pagination keep state in some way?
Current step is obviously easy due to “aria-selected”.
- The topic ‘Target pagination dots’ is closed to new replies.