-
Notifications
You must be signed in to change notification settings - Fork 628
Remove sx
rom the SideNav
component
#6735
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: 0c136d0 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! |
size-limit report 📦
|
👋 Hi from github/github-ui! Your integration PR is ready: https://github.com/github/github-ui/pull/2015 |
🟢 ci completed with status |
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
This PR removes the sx
prop support from the SideNav
component as part of a major breaking change. The component is being migrated away from the styled-system approach to a more standard CSS-based implementation.
- Removes
sx
prop andSxProp
type fromSideNav
component - Replaces
BoxWithFallback
wrapper with direct element rendering - Updates component to use standard HTML elements instead of Box abstraction
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
packages/react/src/SideNav.tsx | Removes sx prop support, replaces BoxWithFallback with direct element rendering, and simplifies component structure |
.changeset/rich-walls-fold.md | Documents the breaking change for the major version release |
variant={variant} | ||
{...rest} | ||
> | ||
<Link aria-current={isReactRouter || selected ? 'page' : undefined} className={newClassName} {...rest}> |
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.
The variant
prop is being removed from the Link component but it was previously passed to BoxWithFallback. This may cause a prop validation warning if Link doesn't accept a variant prop.
Copilot uses AI. Check for mistakes.
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.
The variant
is already handled in newClassName
and Link
does not accept variant
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.
Looks good ✅ 😸
Closes #5832
sx
props withSideNav
.Changelog
Removed
Removed
sx
props andBoxWithFallback
fromSideNav
.Rollout strategy