-
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
fix(popover): correct left/right tips for RTL, increase VRT coverage #2753
Conversation
🦋 Changeset detectedLatest commit: fe34cdf 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 |
File metricsSummaryTotal size: 4.65 MB* Table reports on changes to a package's main file. Other changes can be found in the collapsed Details section below.
Detailspopover
* Results are not gzipped or minified. * An ASCII character in UTF-8 is 8 bits or 1 byte. |
🚀 Deployed on https://pr-2753--spectrum-css.netlify.app |
fd2c609
to
0b351b9
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.
Nice work fixing this and adding the Storybook improvements. The Chromatic-only view with descriptions makes it much easier to understand which ones should be flipping.
I only have one minor grammar suggestion.
464a104
to
80be570
Compare
b12e278
to
0325b5a
Compare
0325b5a
to
a2786f4
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 looking good, just a question about the goals of the sourceless template. I'm wondering if we have to update the class list or add new features, is it going to be hard to remember to update that in both templates? Is there a way to have 1 be a "source of truth" without needing the duplication?
@@ -159,3 +171,39 @@ export const Template = ({ | |||
</div> | |||
`; | |||
}; | |||
|
|||
export const SourcelessTemplate = ({ |
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.
Can you add some more context in a comment here about why this additional template is needed?
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.
Great callout on this! Turns out all I had to do was pass a null trigger where I didn't want a source button to show up (for Chromatic), so I've removed this code 👍
a2786f4
to
fe34cdf
Compare
Description
Fixes an issue in Popover where Left and Right tips were mirrored incorrectly for RTL. This is simliar to some work done on Tooltip. Note that the Left and Right placement for the tips are always on the LTR left and right, even if RTL is turned on. Start and End, however, are adjusted based on the text direction.
Also included Storybook enhancements including:
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
Before
![before-popover](https://private-user-images.githubusercontent.com/23404383/330148608-08f7f1b8-a613-456f-bd0a-1df9c69d9c6a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg1MTAwMDIsIm5iZiI6MTcxODUwOTcwMiwicGF0aCI6Ii8yMzQwNDM4My8zMzAxNDg2MDgtMDhmN2YxYjgtYTYxMy00NTZmLWJkMGEtMWRmOWM2OWQ5YzZhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE2VDAzNDgyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc2ODA2M2UxYzJjMDI3Y2ZjYzRmOGJiNDcxZjhiMjc4NGFjZGQzYzdmYjUyNDA3MzdjZDRmZjYzNDE0YTQwYjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Vx5KnPLelb21yD6MDpAFPUDPdmoTt6_FKnF7QA9F6e0)
After
![after-popover](https://private-user-images.githubusercontent.com/23404383/330148621-96dcb144-6d96-4495-bb51-974593662e95.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg1MTAwMDIsIm5iZiI6MTcxODUwOTcwMiwicGF0aCI6Ii8yMzQwNDM4My8zMzAxNDg2MjEtOTZkY2IxNDQtNmQ5Ni00NDk1LWJiNTEtOTc0NTkzNjYyZTk1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE2VDAzNDgyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJjZmM0NmUxZTgxZTk5MjUxNjFmMjFjODViYmMyMjg4YWU0NzU2MTQxMDdhYTZjYTViMGJmNzk5MmJiMGJiNWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.FUo79NBHQ_LScm8OlitRMYWZ_3kEHhIltyS_WTJNPAY)
To-do list