Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breadcrumbs render caret between non rendered elements #241

Closed
djovic-croz opened this issue Apr 9, 2024 · 0 comments
Closed

Breadcrumbs render caret between non rendered elements #241

djovic-croz opened this issue Apr 9, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@djovic-croz
Copy link

Basic information

  • Tiller version: 1.12.0
  • Module: Breadcrumbs

Bug description

When rendering optional Breadcrumbs elements caret is rendered between non-rendered elements

Steps to reproduce

<Breadcrumbs className=""icon={<Icon type="caret-right" />}>
  <Breadcrumbs.Breadcrumb>
    Projects
  </Breadcrumbs.Breadcrumb>
  {isCondition1 && (
    <Breadcrumbs.Breadcrumb>
      Offices
    </Breadcrumbs.Breadcrumb>
  )}
  {isCondition2 && (
    <Breadcrumbs.Breadcrumb>
      Members
    </Breadcrumbs.Breadcrumb>
  )}
</Breadcrumbs>

Expected behavior

isCondition1 isCondition displed
false false Projects
false true Projects > Members
true false Projects > Offices
false true Projects > Offices > Members

Actual behavior

isCondition1 isCondition displed
false false Projects >>
false true Projects > Members >
true false Projects > Offices >
false true Projects > Offices > Members
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants