-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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
Numbered list-groups with start
attribute do not count correctly.
#37345
Comments
This comment was marked as spam.
This comment was marked as spam.
https://codepen.io/emdeoh/pen/WNyeNeQ works for me |
Sorry, its not about |
Oh my bad! Reopening. |
My two cents! We can use CSS variables. <ol start="10" class="list-group list-group-numbered" style="--list-start: 10;">
<li class="list-group-item">list item</li>
<li class="list-group-item">list item</li>
<li class="list-group-item">list item</li>
<li class="list-group-item">list item</li>
</ol> .list-group-numbered {
counter-reset: section var(--list-start, 0) !important;
} |
Ok. Your solution is a good idea but you need a -1. |
Prerequisites
Describe the issue
Numbered lists with a
start
attribute as offset do not count correctly. For examplestart counting from
1
Reduced test cases
A second value for
counter-reset
fixes the offset, but I do not know how to set this dynamically:What operating system(s) are you seeing the problem on?
Windows, macOS, Android, iOS, Linux
What browser(s) are you seeing the problem on?
Chrome, Safari, Firefox, Microsoft Edge, Opera
What version of Bootstrap are you using?
v5.2.2
The text was updated successfully, but these errors were encountered: