-
Notifications
You must be signed in to change notification settings - Fork 206
fix: vertical rule doesn't render #476
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
Conversation
|
Hi @lazd, I ran vr test for this PR: https://spectrum-visual-regression.ci.corp.adobe.com/job/spectrum-css-vr-test-asset/158/artifact/spectrum-css/backstop_data/html_report/index.html I noticed that some components become 1px higher. Since this PR has no font update as @bernhard-adobe 's #408, but both include the DNA 5.23 upgrade. Do you know what might cause this change ? |
|
@bernhard-adobe can you look into what changed and figure out if we need to change anything in DNA to avoid the shifts? |
|
@lazd @jianliao and I spend last week 1.5 days researching what causes that change and we were unable to figure out what exactly might cause this half-ish pixel change. We inspected various elements for CSS changes and only saw that the typeface changed. We are assuming this is happening because of the font-weight changes and font-face changes coming from the DNA typography updates. |
|
I suggest that we should have a separated PR for upgrade DNA next time. We did spend some time isolate the problem. |
|
@jianliao @bernhard-adobe understood. In the mean time, I will back out the DNA change and re-define the variables in the |
acd5c24 to
b8fc887
Compare
| }, | ||
| "devDependencies": { | ||
| "@spectrum-css/button": "^2.0.3", | ||
| "@spectrum-css/buttongroup": "^2.0.3", |
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 dependency was missing before.
* this does not close the issue; we had to roll back DNA because of Typography changes
* Tool is deprecated
6335413 to
ea7b85f
Compare
| </svg> | ||
| </button> | ||
| </div> | ||
| <button class="spectrum-ActionButton spectrum-ActionButton--quiet"> |
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.
Switched to ActionButton because Tool is deprecated. They are visually identical.
| --spectrum-divider-vertical-height: 100%; | ||
|
|
||
| /* Work around DNA misspelling */ | ||
| --spectrum-divider-small-vertical-width: var(--spectrum-divider-small-vertical-width, var(--spectrum-divider-small-veritcal-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.
The current version of DNA has this token, but it's spelled wrong var(--spectrum-divider-small-veritcal-width). This works around that issue, and should work properly once the misspelled token is removed.
| border-width: var(--spectrum-rule-medium-height); | ||
| border-radius: var(--spectrum-rule-medium-height); | ||
| border-width: var(--spectrum-divider-medium-height); | ||
| border-radius: var(--spectrum-divider-medium-height); |
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.
All tokens renamed from -rule to -divider since the component was renamed in DNA. The previous tokens are still there, but are missing the new vertical-width tokens.
| @import '../commons/index.css'; | ||
|
|
||
| :root { | ||
| --spectrum-divider-vertical-height: 100%; |
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.
Defining height as a variable fixes #455
| > .spectrum-Rule--vertical { | ||
| height: auto; | ||
| align-self: stretch; | ||
| } |
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 makes it so Rules inside of ButtonGroups look nice.
|
I backed out the DNA changes, included a workaround for the misspelled token name, and this is ready to merge. |


Description
This PR does a few different things:
How and where has this been tested?
Screenshots
To-do list