-
Notifications
You must be signed in to change notification settings - Fork 195
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
chore: dialog t-shirt sizing #3322
chore: dialog t-shirt sizing #3322
Conversation
🦋 Changeset detectedLatest commit: 93f309f 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 |
🚀 Deployed on https://pr-3322--spectrum-css.netlify.app |
File metricsSummaryTotal size: 4.30 MB* Table reports on changes to a package's main file. Other changes can be found in the collapsed Details section below.
Detailsdialog
* Results are not gzipped or minified. * An ASCII character in UTF-8 is 8 bits or 1 byte. |
/* Be no bigger than max-width, but also be 90% if the viewport is smaller than max-width */ | ||
inline-size: fit-content; | ||
/* Be no bigger than max-width, but also be 90% if the viewport is smaller than max-width */ | ||
inline-size: var(--mod-dialog-confirm-medium-width, var(--spectrum-dialog-confirm-medium-width)); |
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.
I updated this property to match the .spectrum-Dialog--medium
definition. There are no --sizeM
specific styles in S2- medium is the default so all of the "medium" styles are just under .spectrum-Dialog
.
Does that change make sense to do here?
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.
This is fine since .spectrum-Dialog--medium
is getting deprecated anyway, but since .spectrum-Dialog
and .spectrum--medium
would, in theory, have all the same styles, is there a good reason to keep the .spectrum--medium
selector in a section by itself? What are your thoughts on moving it up and combining it with the .spectrum-Dialog
selector? So until it's deprecated, the selector would be
.spectrum-Dialog,
.spectrum-Dialog--medium {
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.
Yes, I like that much better.
fff09f9
to
bce15e6
Compare
bce15e6
to
de8de1e
Compare
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.
This is fine as is! I left my thoughts on .spectrum-Dialog--medium
but will leave the final decision to you!
/* Be no bigger than max-width, but also be 90% if the viewport is smaller than max-width */ | ||
inline-size: fit-content; | ||
/* Be no bigger than max-width, but also be 90% if the viewport is smaller than max-width */ | ||
inline-size: var(--mod-dialog-confirm-medium-width, var(--spectrum-dialog-confirm-medium-width)); |
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.
This is fine since .spectrum-Dialog--medium
is getting deprecated anyway, but since .spectrum-Dialog
and .spectrum--medium
would, in theory, have all the same styles, is there a good reason to keep the .spectrum--medium
selector in a section by itself? What are your thoughts on moving it up and combining it with the .spectrum-Dialog
selector? So until it's deprecated, the selector would be
.spectrum-Dialog,
.spectrum-Dialog--medium {
de8de1e
to
a549d02
Compare
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.
Looks good to me!
- adds deprecation notice for --small/--medium/--large class names, in favor of the t-shirt sizing class names. - create changeset - updates metadata.json
a549d02
to
93f309f
Compare
Description
This PR aligns the sizing classes for the dialog component to t-shirt sizing, as most of our other components have done in recent years. The old size modifier classes will be deprecated and removed in S2, so deprecation comments were left in the CSS, along with the addition of the t-shirt classes.
How and where has this been tested?
Please tag yourself on the tests you've marked complete to confirm the tests have been run by someone other than the author.
Validation steps
Regression testing
Validate:
Screenshots
To-do list