feat(mosaic): default Profile.NavItem badges to neutral via BadgeContext - #9860
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: a6a21ee The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types 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 |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: ASSERTIVE Plan: Team Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
3585b35
into
prestonwebdev/mosaic-profile-nav-badge
Description
Stacked on #9856.
Adds a
BadgeContextto Mosaic so a parent can set a defaultcolorfor theBadges rendered inside it, following theButtonContextpattern. An explicitcoloron theBadgestill wins.Profile.NavItemprovidescolor: 'neutral', so a nav item badge can be written as:The Profile swingset docs and stories drop the now-redundant
color='neutral'.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change