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

Add missing link variant to Button #4814

Merged
merged 10 commits into from
Aug 6, 2024
Merged

Add missing link variant to Button #4814

merged 10 commits into from
Aug 6, 2024

Conversation

langermank
Copy link
Contributor

@langermank langermank commented Aug 5, 2024

The link variant has been missing for ages. It's always existed in PVC. Just bringing it on over 😄

Changelog

New

  • Add link variant to Button

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Merge checklist

Copy link

changeset-bot bot commented Aug 5, 2024

🦋 Changeset detected

Latest commit: 7ad25a4

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

This PR includes changesets to release 1 package
Name Type
@primer/react Minor

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

github-actions bot commented Aug 5, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 95.8 KB (-0.05% 🔽)
packages/react/dist/browser.umd.js 96.19 KB (+0.02% 🔺)

@github-actions github-actions bot temporarily deployed to storybook-preview-4814 August 5, 2024 23:48 Inactive
@langermank langermank marked this pull request as ready for review August 5, 2024 23:59
@langermank langermank requested review from a team as code owners August 5, 2024 23:59
Copy link
Member

@joshblack joshblack 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! Just left a comment for the changeset

.changeset/beige-schools-kneel.md Outdated Show resolved Hide resolved
Co-authored-by: Josh Black <joshblack@github.com>
Copy link
Contributor

@mperrotti mperrotti left a comment

Choose a reason for hiding this comment

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

Overall looking good, just recommending a simpler way to style links that are inline with text content.

Comment on lines +35 to +38
<a
style={{color: 'var(--fgColor-link)', textDecoration: 'underline'}}
href="https://github.com/github/accessibility/blob/8b300b36d8bca28fd5e3e70ffa077a6f8ee65c05/docs/wiki/screen-reader-testing/dynamically-updated-buttons-support-april-2024.md"
>
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of manually styling these, we could use the inline prop on our Link component

Suggested change
<a
style={{color: 'var(--fgColor-link)', textDecoration: 'underline'}}
href="https://github.com/github/accessibility/blob/8b300b36d8bca28fd5e3e70ffa077a6f8ee65c05/docs/wiki/screen-reader-testing/dynamically-updated-buttons-support-april-2024.md"
>
<Link
inline
href="https://github.com/github/accessibility/blob/8b300b36d8bca28fd5e3e70ffa077a6f8ee65c05/docs/wiki/screen-reader-testing/dynamically-updated-buttons-support-april-2024.md"
>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was competing with the Link story so I kind of quickly did this instead. Especially since its just for a note.. I'm going to leave it for now but we can fix it later if needed.

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 6, 2024
@langermank langermank added this pull request to the merge queue Aug 6, 2024
Merged via the queue into main with commit 1cda89c Aug 6, 2024
30 checks passed
@langermank langermank deleted the button-link-variant branch August 6, 2024 18:35
@primer primer bot mentioned this pull request Aug 6, 2024
@primer primer bot mentioned this pull request Oct 18, 2024
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.

3 participants