Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

[list] item with trailing meta has incorrect padding in RTL mode #7024

@devversion

Description

@devversion

Currently if someone uses a mdc-list-item with dir="rtl" and a --trailing-meta section, the horizontal padding breaks.

image

<ul class="mdc-list">
    <li class="mdc-list-item mdc-list-item--with-one-line mdc-list-item--with-trailing-meta" tabindex="0">
      <span class="mdc-list-item__ripple"></span>
      <span class="mdc-list-item__content">Single-line item</span>
      <span class="mdc-list-item__end">(Icon)</span>
    </li>
    <li class="mdc-list-item mdc-list-item--with-one-line">
      <span class="mdc-list-item__ripple"></span>
      <span class="mdc-list-item__content">Single-line item</span>
    </li>
    <li class="mdc-list-item mdc-list-item--with-one-line">
      <span class="mdc-list-item__ripple"></span>
      <span class="mdc-list-item__content">Single-line item</span>
    </li>
  </ul>

Reproduction: https://codepen.io/DevVersion/pen/rNjqdpo?editors=1100

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions