feat(mosaic): notch the user avatar around its nested organization mark - #9831
alexcarpenter wants to merge 2 commits into
Conversation
🦋 Changeset detectedLatest commit: 993a6ed 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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Description
Stacked on #9807.
When an account leads the
UserButtonand works in an organization, the organization mark nests on the account avatar. This cuts a notch out of the avatar around that mark: the mark's own rounded square, 1px larger on every side, so a uniform gap of background separates the two, and the avatar's outline is filleted where the notch meets its edge so it never comes to a point. The notch is a CSS mask built from an SVG path in spacing units, so it scales with the avatar's size and mirrors underdir="rtl".An avatar-only trigger now rings the avatar itself on focus rather than its box, since with the mark overhanging the lead the box is neither round nor square. The nested mark's radius uses the
--cl-radius-smtoken instead of a literal.Also adds a No organizations section and story to the Swingset docs: an account that belongs to no organization, leading the surface by its identifier with only the gear in the header.
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change