Snippets: Update group treatment and add description support#477
Merged
michaeltaranto merged 6 commits intomasterfrom Feb 15, 2026
Merged
Snippets: Update group treatment and add description support#477michaeltaranto merged 6 commits intomasterfrom
group treatment and add description support#477michaeltaranto merged 6 commits intomasterfrom
Conversation
🦋 Changeset detectedLatest commit: 81100d2 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 |
felixhabib
reviewed
Feb 11, 2026
Contributor
|
I'm still seeing the top margin offset problem in Safari and Firefox as well as Chrome 🤔 |
felixhabib
approved these changes
Feb 13, 2026
Contributor
felixhabib
left a comment
There was a problem hiding this comment.
Working really solid now with scrolling! Nice improvement! I left a couple more suggestions but happy with where it's at ⭐
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improve affordance of snippet
groupby nesting snippets under sticky group headers.Snippets also now support an optional
descriptionproperty to help users differentiate similar snippets.Migration
While not a breaking change, this update does change the way snippets are rendered and how groups are treated, so some migration may be desired.
Previously snippets rendered the
groupandnameon the same line.For example:
[ { "group": "Button", "name": "Small", "code": "..." }, { "group": "Button", "name": "Large", "code": "..." } ]resulted in:
Groups are now elevated to sticky headers, with snippets nested underneath:
To avoid grouping migrate to use
nameanddescriptionproperties instead, and omitgroup:[ { - group: 'Button', + name: 'Button', - name: 'Small', + description: 'Small', code: '...', }, { - group: 'Button', + name: 'Button', - name: 'Large', + description: 'Large', code: '...', }, ]which results in the same UX as previously.