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

♿️ Don't render an empty breadcrumb element #77

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

kirkkwang
Copy link

@kirkkwang kirkkwang commented Sep 6, 2024

This commit will guard against rendering an empty breadcrumb element when there are no breadcrumbs to display. The check we are doing is to see if the html string has the breadcrumb-item class.

Ref:

Before:
image

After:
image

@kirkkwang kirkkwang changed the title ♿️ Don't render an empty breadcrubm element ♿️ Don't render an empty breadcrumb element Sep 6, 2024
This commit will guard against rendering an empty breadcrumb element
when there are no breadcrumbs to display.  The check we are doing is to
see if the html string has the `breadcrumb-item` class.

Ref:
- #67
@kirkkwang kirkkwang force-pushed the i67-empty-breadcrumbs branch from e4a2247 to eb9a930 Compare September 6, 2024 23:06
@kirkkwang kirkkwang merged commit 4a3a10e into main Sep 6, 2024
2 checks passed
@kirkkwang kirkkwang deleted the i67-empty-breadcrumbs branch September 6, 2024 23: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.

2 participants