-
Notifications
You must be signed in to change notification settings - Fork 4k
[Fix] st.html handles list indentation
#13437
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
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
✅ PR preview is ready!
|
225ebfd to
3610de9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes a styling issue in the st.html component where nested lists (ul/ol/dl elements) were not displaying proper indentation due to global CSS resets. The fix restores appropriate padding to list elements within st.html components.
Key Changes
- Added CSS styling to restore
paddingLeftfor list elements using theme spacing (threeXL= 32px) - Added unit test to verify nested list DOM structure
- Added E2E test with snapshot comparison to verify visual indentation
Reviewed changes
Copilot reviewed 4 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
frontend/lib/src/components/elements/Html/styled-components.ts |
Added padding restoration for ul/ol/dl elements to fix nested list indentation |
frontend/lib/src/components/elements/Html/Html.test.tsx |
Added unit test to verify nested lists render correctly in the DOM |
e2e_playwright/st_html.py |
Added test case with nested list HTML structure |
e2e_playwright/st_html_test.py |
Added E2E test to verify list indentation with snapshot testing and updated element counts |
e2e_playwright/__snapshots__/linux/st_html_test/st_html-nested_lists[webkit].png |
Added visual regression snapshot for WebKit browser |
e2e_playwright/__snapshots__/linux/st_html_test/st_html-nested_lists[firefox].png |
Added visual regression snapshot for Firefox browser |
e2e_playwright/__snapshots__/linux/st_html_test/st_html-nested_lists[chromium].png |
Added visual regression snapshot for Chromium browser |
|
This was amazingly fast - thank you @mayagbarnes! |
Describe your changes
Fix the styling in
st.htmlfor list indentationBefore:

After:

GitHub Issue Link (if applicable)
Closes #13426
Testing Plan