Skip to content

bug: Breadcrumb arrows wrong spacing in RTL #4443

@ahmafi

Description

@ahmafi

Reproduction URL (Required)

https://play.tailwindcss.com/PnsTWOKJxx?file=css

What version of daisyUI are you using?

5.5.18

Which browsers are you seeing the problem on?

All browsers

Describe your issue

Current Breadcrumbs RTL spacing:

Image

What should be:

Image

This issue was addressed in #1598 before. But it seem that it never got fixed. The solution described in that issue, uses [dir='rtl'] to fix the wrong margin-left and margin-right issues in RTL mode.

Now there are margin-inline-end and maring-inline-start available with Baseline support.

Maybe we can use these new CSS margins instead that fixes the problem in RTL without separate selectors?

Also there is already a [dir='rtl'] selector to rotate the breadcrumb arrows in RTL, we could also keep using margin-left and margin-right in there.

I'm happy to create a PR if that sounds OK (this is really triggering my OCD 😄).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions