Project

General

Profile

Actions

Patch #43822

closed

Use logical CSS property in CommonMark help examples for RTL support

Added by Go MAEDA 2 days ago. Updated about 23 hours ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:

Description

In `app/views/help/wiki_syntax/common_mark/*/wiki_syntax_common_mark.html.erb`, the task list example uses `padding-left` in an inline style. This is a physical property and assumes an LTR layout.

Although this does not currently cause any RTL-related issues because those help files are for LTR languages, changing the physical property to the logical property `padding-inline-start` may reduce the risk of future layout issues in RTL languages. For example, if RTL-language help pages (such as Arabic or Persian versions) are later created based on the English version, using `padding-left` could cause incorrect indentation in task list examples.

The attached patch replaces `padding-left` with `padding-inline-start`, which also works in RTL layouts.


Files

Actions

Also available in: Atom PDF