-
Notifications
You must be signed in to change notification settings - Fork 638
Remove unwanted box-shadow on inactive
buttons
#6981
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
Conversation
🦋 Changeset detectedLatest commit: 2700ee2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks! |
… into mp/button-papercuts-oct2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds a new Link variant to LinkButton stories and e2e coverage, and removes an unintended box-shadow from inactive buttons to address a visual design bug.
- Added 'link' to Playground variant options and a dedicated Link variant story
- Added e2e test entry for the new Link variant
- Fixed inactive button styling by explicitly removing box-shadow
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
File | Description |
---|---|
packages/react/src/Button/LinkButton.stories.tsx | Adds 'link' to variant options for interactive Storybook controls |
packages/react/src/Button/LinkButton.features.stories.tsx | Introduces a Link variant story for visual/example coverage |
packages/react/src/Button/ButtonBase.module.css | Removes unwanted box-shadow from inactive button state |
e2e/components/LinkButton.test.ts | Adds e2e test mapping for the new Link variant story |
inactive
buttons
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, had one non-blocking question.
Also I think you need to update snapshots for the new story
type: 'radio', | ||
}, | ||
options: ['default', 'primary', 'danger', 'invisible', 'outline'], | ||
options: ['default', 'primary', 'danger', 'invisible', 'outline', 'link'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we removing this? 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean adding?
Closes https://github.com/github/primer/issues/5312
Changelog
New
Changed
box-shadow
Removed
Rollout strategy
Testing & Reviewing
Merge checklist