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

fix: Breadcrumbs no longer throws an error when empty #4563

Merged
merged 2 commits into from
Jan 12, 2022

Conversation

vladitasev
Copy link
Contributor

@vladitasev vladitasev commented Jan 12, 2022

  • fixed the code that breaks when there are no items
  • additionally, fixed the test page after separator-class="Slash" had been mistakenly identified as a class attribute by the script that refactored all test pages a while ago and extracted all hard-coded CSS to a separate file

@kineticjs Please investigate how Breadcrumbs should look like with no items and one item only. Currently, even with one item, nothing is displayed. If that is not intended, please create an issue or a follow-up change to fix that.

closes: #4562

@nnaydenow
Copy link
Contributor

nnaydenow commented Jan 12, 2022

Hi @vladitasev,

If there are no links the breadcrumbs should remain visible with empty content. If one link is provided it should remain as current selected item (text only) if design is set to Standard. If the design is set NoCurrentPage it should be displayed as a link with separator after it. I will add this a separate issue.

Edit: It will be revised in following issue: #4565

Regards,
Nayden

@vladitasev vladitasev merged commit cfd9fa6 into master Jan 12, 2022
@vladitasev vladitasev deleted the breadcrumbs-empty-fix branch January 12, 2022 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ui5-breadcrumbs: js error when no breadcrumbs-item
2 participants