Opened 4 years ago
Closed 4 years ago
#52401 closed defect (bug) (fixed)
Twenty Twenty: RTL list styles
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.7 | Priority: | normal |
Severity: | normal | Version: | 5.6 |
Component: | Bundled Theme | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
In #51574/[49510], styles were added to ensure proper nesting of nested unordered lists in the RTL style sheet.
This fixes the issue, but because the RTL stylesheets are built, the added style is removed after running npm run build
.
To preserve the styles in the RTL stylesheet going forward, a reflective style needs to be added to the LTR stylesheet.
Attachments (4)
Change History (10)
#3
@
4 years ago
52401.diff is fine, though the value could be adjusted from 2em
to 1.3em
for better consistency. The patch would keep those indentations for any sites using the next version of Twenty Twenty with either WordPress 5.5 or 5.6.
Reverting [49510] is another option. GB27947 fixed the underlying problem behind #51574 on the editor side for WordPress 5.7 (merged into trunk with #52394).
The left margin and padding added to these list elements was not reflected in RTL, and [49510] worked around that in the Twenty Twenty theme instead of correcting in the editor.
.editor-styles-wrapper ul, .editor-styles-wrapper ol { margin-bottom: 28px; padding-left: 1.3em; margin-left: 1.3em; }
Twenty Nineteen never had a theme-specific patch, so I'll close #51573.
Hi!
There is no left padding in the frontend so do we need to add left padding in the frontend?