-
Notifications
You must be signed in to change notification settings - Fork 599
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
Fixes AvatarStack styling bugs (focus on stacking context issues) #5714
Conversation
… 'important' flags
🦋 Changeset detectedLatest commit: 7b673ca The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 📦
|
@mperrotti I reviewed this with macOS VoiceOver, NVDA, and JAWS. CSS' |
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.
Soooo nice, and the explanations in the comments were the cherry on top ✨
// MIN-WIDTH CALC FORMULA EXPLAINED: | ||
// avatar size ➡️ var(--avatar-stack-size) | ||
// plus the visible part of the 2nd avatar ➡️ var(--avatar-stack-size) - var(--overlap-size) | ||
// plus the visible part of the 3rd AND 4th avatar ➡️ (var(--avatar-stack-size) - var(--overlap-size-avatar-three-plus)) * 2 |
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.
Really well explained, thanks
Relates to https://github.com/github/copilot-productivity/issues/3985
An alternative approach: #5705
Benefits of this approach:
AvatarStack
can now be used on any background color without seeing thevar(--bgColor-default)
border around each avatardirection
property to remove redundant styles and!important
flagsDemos
Both demos are zoomed in x10.
Before
Kapture.2025-02-19.at.17.58.16.mp4
After
Kapture.2025-02-19.at.18.00.52.mp4
Changelog
New
Changed
Replaces
z-index
andbox-shadow
AvatarStack styling withmask
Removed
Rollout strategy
Testing & Reviewing
Merge checklist