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

Support use of Breadcrumbs without reset.css #339

Merged
merged 3 commits into from
Jan 31, 2025

Conversation

martin-jackson
Copy link
Collaborator

Prior to the change, when using Breadcrumbs without reset.css, the chevron icon between the links was not displayed.

The reset stylesheet contains a content: "" rule which is applied to the <li> elements, and this leads to the icon being shown. We've just added the same rule to breadcrumbs.css, and altered the display rule to align the links and icons in the list items.

The rule from reset.css (sanitize.css):
https://github.com/csstools/sanitize.css/blob/61c85b6961f684d0124093d97475073bb08f557e/sanitize.css#L102-L105

Prior to the change, when using Breadcrumbs
without reset.css, the chevron icon between
the links was not displayed.

The reset stylesheet contains a `content: ""`
rule which is applied to the `<li>` elements,
and this leads to the icon being shown. We've
just added the same rule to breadcrumbs.css,
and altered the display rule to align the links and
icons in the list items.

The rule from reset.css (sanitize.css):
https://github.com/csstools/sanitize.css/blob/61c85b6961f684d0124093d97475073bb08f557e/sanitize.css#L102-L105
@martin-jackson martin-jackson requested a review from a team as a code owner January 31, 2025 13:06
Copy link

changeset-bot bot commented Jan 31, 2025

🦋 Changeset detected

Latest commit: a16773d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@postenbring/hedwig-css Patch
@postenbring/hedwig-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@juliuxu juliuxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 👌

I added an example testing for the exact use case. Looks to be working.

Quickly tested with screen reader in desktop safari, same behaviour as before 👍

@juliuxu juliuxu merged commit 910b97c into master Jan 31, 2025
2 checks passed
@juliuxu juliuxu deleted the breadcrumbs-without-reset branch January 31, 2025 13:24
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