-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix errorOverlayText
prop on small screens
#671
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
3ecc794
to
1af5b5e
Compare
1af5b5e
to
46f856d
Compare
46f856d
to
5928da0
Compare
errorOverlayText
properrorOverlayText
prop on small screens
errorOverlayText
prop on small screenserrorOverlayText
prop on small screens
5928da0
to
2f65986
Compare
errorOverlayText
prop on small screenserrorOverlayText
prop on small screens
2f65986
to
1f5a222
Compare
@dleroux test failures look legitimate on this one |
1f5a222
to
66da8f1
Compare
Sorry about that, I hadn't noticed the failing CI. Fixed now @danrosenthal |
Co-Authored-By: dleroux <dleroux@users.noreply.github.com>
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.
Changes, tests, and 🎩 LGTM! 🚢
}); | ||
|
||
describe('errorOverlayText ', () => { | ||
const errorOverlayText = "can't drop this"; |
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.
😁
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.
Should have put big pants or music notes here.
WHY are these changes introduced?
Because we render different components to output
overlayText
anderrorOverlayText
depending on screen size, theerrorOverlayText
rendered the wrong text.WHAT is this pull request doing?
Ensures the right text is rendered and tests are added to prevent this in the future.
How to 🎩
Copy-paste this code in
playground/Playground.tsx
:🎩 checklist