Skip to content

Conversation

@demiankatz
Copy link
Member

This adjusts the icon dev tool so that it shows left-to-right/right-to-left versions of icons on a single line. This makes it easier to compare configurations that have ltr/rtl versions with those that do not, without conceptually related icons ending up in different visual positions on the page.

The PR also removes a pointless right-to-left definition that is identical to its left-to-right counterpart.

@demiankatz demiankatz added this to the 11.0 milestone Oct 29, 2025
@demiankatz demiankatz mentioned this pull request Oct 29, 2025
6 tasks
// If this is a right-to-left icon, display it on the same line with the left-to-right version:
if ($icon === "$lastIcon-rtl") {
array_pop($icons); // discard the previous uncombined version of the line before adding the combined version
$icons[] = $this->icon($lastIcon) . '/' . $this->icon($icon) . ' ' . $this->escapeHtml($lastIcon) . ' (ltr/rtl)<br>';
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it make sense to put the icon at the end of the label, to see it in proper text position?

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you mean something like:

[ltr icon] (ltr) icon-label [rtl icon] (rtl)

? I'd have to try it to see how I feel about it, though my gut feeling is that the advantage to the current approach is that all the icons line up in a neat column and can be more easily scanned/reviewed. If some icons floated on the other side of the text, it might be more visually confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants