-
Notifications
You must be signed in to change notification settings - Fork 246
fix: Update flashing issue in popups and rtl placement #3729
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: master
Are you sure you want to change the base?
Conversation
| } | ||
| // No cleanup is needed if element or theme is not set, so return undefined (no effect) | ||
| return undefined; | ||
| }, [localRef, style, theme]); |
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 layout effect was happening too late, causing menu and select to flash on first render on the first focusable element. Moved this further up in the first uselayout effect
| </Popup.Card> | ||
| </Popup.Popper> | ||
| </Popup> | ||
| </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.
undo this change
| </Popup> | ||
| <div style={{display: 'flex', justifyContent: 'flex-start'}}> | ||
| <Popup model={model}> | ||
| <Popup.Target style={{visibility: 'hidden'}}></Popup.Target> |
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.
when the target is hidden, it knows how to correctly position itself.
Workday/canvas-kit
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Project |
Workday/canvas-kit
|
| Branch Review |
mc-fix-popper-issues
|
| Run status |
|
| Run duration | 02m 18s |
| Commit |
|
| Committer | Manuel Carrera |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
1
|
|
|
3
|
|
|
73
|
|
|
0
|
|
|
432
|
| View all changes introduced in this branch ↗︎ | |
Warning
Partial Report: The results for the Application Quality reports may be incomplete.
UI Coverage
19.51%
|
|
|---|---|
|
|
1027
|
|
|
249
|
Accessibility
98.26%
|
|
|---|---|
|
|
4 critical
4 serious
0 moderate
2 minor
|
|
|
8
|
Tests for review
Modal.spec.tsx • 1 failed test
| Test | Artifacts | |
|---|---|---|
| ... > should not close the modal |
Test Replay
Screenshots
|
|
The first 5 failed specs are shown, see all 27 specs in Cypress Cloud.
Tabs.spec.tsx • 1 flaky test
| Test | Artifacts | |
|---|---|---|
| ... > when the "More" button is clicked > should have the third Tab as the first menu item |
Test Replay
Screenshots
|
|
Select.spec.tsx • 1 flaky test
| Test | Artifacts | |
|---|---|---|
| ... > when Boulder is reached via the arrow key > should show Boulder (United States) |
Test Replay
Screenshots
|
|
Popup.spec.tsx • 1 flaky test
| Test | Artifacts | |
|---|---|---|
| ... > when the "Delete" button has focus and the tab key is pressed > should redirect focus to the "Next Focusable Button" button |
Test Replay
Screenshots
|
|
Summary
Fixes: #1234
Release Category
Components
Release Note
Optional release note message. Changelog and release summaries will contain a pull request title. This section will add additional notes under that title. This section is not a summary, but something extra to point out in release notes. An example might be calling out breaking changes in a labs component or minor visual changes that need visual regression updates. Remove this section if no additional release notes are required.
BREAKING CHANGES
Optional breaking changes message. If your PR includes breaking changes. It is extremely rare to put breaking changes outside a
prerelease/majorbranch. Anything in this section will show up in release notes. Remove this section if no breaking changes are present.Checklist
ready for reviewhas been added to PRFor the Reviewer
Where Should the Reviewer Start?
Areas for Feedback? (optional)
Testing Manually
Screenshots or GIFs (if applicable)
Thank You Gif (optional)