Problem/Motivation

components/molecules/breadcrumb/breadcrumb.scss sets the separator glyph for LTR and then repeats the same glyph in the RTL override:

.breadcrumb-item + .breadcrumb-item::before {
  content: quote("\F285");   // chevron-right
}

[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
  content: quote("\F285");   // chevron-right again
}

\F285 is Bootstrap Icons chevron-right. The [dir="rtl"] block exists precisely to flip it, and does not. On an Arabic page the trail reads right to left while the arrow points right, stating the opposite of the actual reading order.

This is not Storybook only. It was confirmed on a live Arabic article page, where the computed ::before content is the chevron-right glyph with float: right. Verified against 1.0.x at commit 6e974b0.

Steps to reproduce

  1. Install the theme on a multilingual site with Arabic enabled.
  2. Open any Arabic page carrying a breadcrumb of more than one item.
  3. Inspect the separator. It points right, against the right to left reading order.

Proposed resolution

Make the [dir="rtl"] override \F284, chevron-left. Verified in the compiled CSS: LTR \f285, RTL \f284.

A CSS logical property cannot solve this. A logical property can flip a margin or a float, but the separator is a font glyph, so RTL needs a different character. The [dir="rtl"] override is the correct mechanism; it simply carried the wrong value.

A merge request will follow.

Remaining tasks

  • ✅ File an issue
  • ❌ Addition/Change/Update/Fix
  • ❌ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support
  • ➖ User Guide Documentation support
  • ➖ UX/UI designer responsibilities
  • ❌ Accessibility and Readability
  • ❌ Reviewed by a human
  • ❌ Code review by maintainers
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes
  • ❌ Release

User interface changes

  • The breadcrumb separator points left on RTL pages, matching the reading order.

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Fixed the breadcrumb separator pointing the wrong way in RTL.
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajab natshah created an issue. See original summary.

rajab natshah’s picture

Status: Active » Needs review

rajab natshah’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.