-
Notifications
You must be signed in to change notification settings - Fork 20
feat(utilities): rename viewport-based sizing utility classes #6191
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: cb06906 The changes in this PR will be included in the next version bump. This PR includes changesets to release 12 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 |
Related Previews |
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.
Could you also update the information in the documentation regarding those viewport sizing utility classes?
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.
Please update the documentation as well as the snapshots accordingly. Updating the snapshots will also help you test that the new classes are working correctly.
update documentation
|
> - `vw-quarter`, `vw-third`, `vw-half`, `vw-two-thirds`, `vw-three-quarters`, `vw-full` | ||
> - `vh-quarter`, `vh-third`, `vh-half`, `vh-two-thirds`, `vh-three-quarters`, `vh-full` |
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.
> - `vw-quarter`, `vw-third`, `vw-half`, `vw-two-thirds`, `vw-three-quarters`, `vw-full` | |
> - `vh-quarter`, `vh-third`, `vh-half`, `vh-two-thirds`, `vh-three-quarters`, `vh-full` | |
> - `vw-{suffix}`, `vh-{suffix}` |
${samples.map( | ||
sample => html` | ||
<div class="grid-item snapshot"> | ||
<div class="${generateClassNames(sample, true)}"></div> |
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.
Only the vw
and vh
classes are being tested here, please update generateClassNames to also have tests for min
and max
📄 Description
This PR renames viewport-based sizing utility classes from numeric values to named variants for consistency with percentage utilities.
🚀 Demo
If applicable, please add a screenshot or video to illustrate the changes.
📝 Checklist