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

Unify breadcrumbs #2642

Merged
merged 9 commits into from
Feb 27, 2024
Merged

Unify breadcrumbs #2642

merged 9 commits into from
Feb 27, 2024

Conversation

tbenning
Copy link
Contributor

@tbenning tbenning commented Feb 26, 2024

What are you trying to accomplish?

Update hover styles on breadcrumb view component to be consistent with React implementation.

screenshot of breadcrumbs without hover state

Closes this issue
https://github.com/github/primer/issues/3069

Risk Assessment

  • Low risk the change is small, highly observable, and easily rolled back.

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Added/updated previews (Lookbook)
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

@tbenning tbenning requested a review from a team as a code owner February 26, 2024 23:38
Copy link

changeset-bot bot commented Feb 26, 2024

🦋 Changeset detected

Latest commit: bed0f0b

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

This PR includes changesets to release 1 package
Name Type
@primer/view-components 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

@langermank langermank left a comment

Choose a reason for hiding this comment

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

Niiiice

Copy link
Contributor

⚠️ Visual differences found

Our visual comparison tests found UI differences. Please review the differences by viewing the files changed tab to ensure that the changes were intentional.

Review visual differences

@jonrohan
Copy link
Member

jonrohan commented Feb 27, 2024

Screen.Recording.2024-02-27.at.10.00.38.AM.mov

Not sure if this was just me, but kinda weird? The cursor turns into a pointer on the edge of the item but back into an arrow. http://primer-view-components-preview-2642.eastus.azurecontainer.io/view-components/lookbook/inspect/primer/beta/breadcrumbs/playground

@tbenning
Copy link
Contributor Author

Not sure if this was just me, but kinda weird? The cursor turns into a pointer on the edge of the item but back into an arrow.

@jonrohan I'm definitely getting this too :/. I'm not sure what's going on nor how to remediate this actually 🤔 I'm not sure if this has something to do with how we're overriding the default behavior on the Link component or not

@tbenning
Copy link
Contributor Author

Feels like there are 3 paths:

  • A) Figure out this weird browser rendering bug
  • B) Keep cursor:pointer on current page items and update React to match — this is ok, but still feels a bit funny IMO. The W3 example does this, but i'm still not 100% convinced yet.
  • C) Remove the <a> entirely and render it as text. The w3 guideline say this is ok I think but I sort of like how it announces the current item for screen reader users. Feels like a heavier lift as well.

Ideally go with A, but will settle for B.

Co-authored-by: Jon Rohan <rohan@github.com>
@jonrohan jonrohan enabled auto-merge (squash) February 27, 2024 23:15
@jonrohan jonrohan merged commit 7f17b7c into main Feb 27, 2024
29 of 30 checks passed
@jonrohan jonrohan deleted the tbenning/breadcrumb-update branch February 27, 2024 23:18
@primer primer bot mentioned this pull request Feb 27, 2024
@primer primer bot mentioned this pull request Mar 15, 2024
jonrohan added a commit that referenced this pull request Mar 27, 2024
Co-authored-by: tbenning <tbenning@users.noreply.github.com>
Co-authored-by: Jon Rohan <rohan@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants