Skip to content

Conversation

@matyasf
Copy link
Collaborator

@matyasf matyasf commented Nov 20, 2025

The previous implementation divided listPadding by 2, but this did not correctly align ordered and unordered lists. Changed to subtract a fixed 1.3rem offset from the listPadding to ensure both list types start at the same vertical position.

To test: Compare ordered and unordered lists side-by-side as shown in the steps to reproduce example. Both list types should now start at the same horizontal position. Test with different override values

Fixes #2249

🤖 Generated with Claude Code

The previous implementation divided listPadding by 2, but this did not
correctly align ordered and unordered lists. Changed to subtract a fixed
1.3rem offset from the listPadding to ensure both list types start at the
same vertical position.

To test: Compare ordered and unordered lists side-by-side as shown in the
steps to reproduce example. Both list types should now start at the same
horizontal position.

Fixes #2249

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@matyasf matyasf self-assigned this Nov 20, 2025
@matyasf matyasf requested review from balzss and git-nandor November 20, 2025 16:18
@github-actions
Copy link

github-actions bot commented Nov 20, 2025

PR Preview Action v1.6.3
Preview removed because the pull request was closed.
2025-11-25 09:33 UTC

...(ordered && {
listStyleType: 'none',
paddingInlineStart: `calc(${componentTheme.listPadding} / 2)`,
// 1.3 rem is removed to have the ordered list start at the same point
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is good for now, but later should be updated to something more "proper"

@matyasf matyasf merged commit baed912 into master Nov 25, 2025
10 of 11 checks passed
@matyasf matyasf deleted the fix_list_start_pos branch November 25, 2025 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

List indentation differs for ordered and unordered lists

4 participants