Skip to content

RTL breadcrumbs add weird backslashes #734

@xGraviton

Description

@xGraviton

Describe the issue

Breadcrumbs in RTL languages add a weird backslash to each <a href>.
For example, minimal RTL HTML:

<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css">
</head>
<body>

<main class="container">
    <nav aria-label="breadcrumb">
      <ul>
        <li><a href="#">الرئيسية</a></li>
        <li><a href="#">المنتجات</a></li>
        <li><a href="#">الإلكترونيات</a></li>
        <li>الهواتف الذكية</li>
      </ul>
    </nav>
</main>

</body>
</html>

This is the result:

Image

Current Behavior

Breadcrumbs in RTL languages add a weird backslash to each <a href>. See image.
This is likely caused by the ::after pseudo-element.

Expected Behavior

Clean breadcrumbs without these backslashes!

Environment

Reproduced on Firefox and Chrome on Android, Linux, and Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions