-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
Prevent layout shift on hover in libs/board manager #1568
Conversation
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.
It works fine to me, I've just left a trivial remark to slightly improve the html.
if (!this.state.versionUpdate) this.setState({ focus: false }); | ||
}} | ||
> | ||
<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.
Having a div
here is superfluous at this point. Please replace it with a react fragment (<>...</>
).
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.
I replaced it here. Thanks 👍
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.
even the fragment is superfluous we can just return the node no?
return itemRenderer.renderItem(
Object.assign(this.state, { item }),
this.install.bind(this),
this.uninstall.bind(this),
this.onVersionChange.bind(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.
Thank you @francescospissu ! It's looking great now 🍕
Motivation
At present in the IDE2 when hovering over an item in the library or board manager the item height changes, shifting the position of all library items in the manager. We should avoid this behavior because it is not ideal and could be considered "inaccessible."
Change description
Retain the version drop-down and the install button always visible in the item.
Other information
Reviewer checklist