-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(headercell): added new hover prop to control component hover state #928
fix(headercell): added new hover prop to control component hover state #928
Conversation
@@ -55,28 +57,36 @@ export const StyledTableHeader = styled("th", { | |||
${focusVisibleA11yStyle} | |||
|
|||
${(props: CellHeaderExtraProps) => { | |||
const { active = false, horizontalAlign = "left" } = props; | |||
const { active = false, horizontalAlign = "left", hover = true } = props; |
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 looks like it defaults to "true" 👍
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.
Is it ok? or should it be the other way around? 🤔
What do you think @clarsen-czi?
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.
@clarsen-czi sorry I think we still need your feedback here 😁 🙏
If we default hover
to true
, it would mean that the CellHeader
could have hover effect when no corresponding action is present/implemented, so the question here is whether we should default hover
to false
instead to prevent that?
Thank you!
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.
Good call @tihuan! I agree that having it default to false
makes the most sense. Thanks for the suggestion!
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.
LGTM!! Thanks for jumping on this so quickly @masoudmanson!
Yes! Thanks Masoud for the quick update, Erin for raising the default and Connor for confirming it! 🎉 |
Summary
HeaderCell
Github issue: #927
https://czi-sci.slack.com/archives/C032S43KKFV/p1738019694310679
Checklist
defaultTheme.ts
used wherever possible