-
Notifications
You must be signed in to change notification settings - Fork 2
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
Display error message of <IconLayout> on a <Tooltip> #16
Conversation
ReactDOM.render(element, div); | ||
}); | ||
|
||
it('renders on top of anchor when possible or 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.
這 description 應該需要清楚解釋說在 700px 的位置(熒幕下方)的時候,即使是 <AnchoredBoxTop>
或 <AnchoredBoxBottom>
都會出現 top anchor。
maybe like renders top anchor when placed at the bottom of screen
?
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.
恩恩我改一下 desc
const layerId = wrapper.instance().baseLayer.id; | ||
|
||
// Make sure the layer is created | ||
expect(document.getElementById(layerId)).not.toBeNull(); |
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.
expect(document.getElementById(layerId)).toBeTruthy();
感覺沒這麼拗口? XD
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.
但我覺得 toBeTruthy()
的意思就是拿來測 Boolean XD
雖然這樣會動,但我覺得意思不對
others LGTM 辛苦了 💦 |
Purpose
The error message for an
<IconLayout>
should be displayed on a<Tooltip>
which shows up on hover, according to the design spec.Implement
<Tooltip>
outside components which hide overflow contents, the following are migrated:anchored()
mixin (determines absolute position)renderToLayer()
mixin (renders Component outside of React root)<AnchoredTooltip>
(simplified version)