-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fixed Table Header click for options dropdown #9300
Fixed Table Header click for options dropdown #9300
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.
PR Summary
Fixed table header cell interaction by extending the clickable area to span the full width, improving dropdown options accessibility in the record table.
- Added
flex: 1
style to child divs inpackages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderCell.tsx
to ensure consistent click behavior across the entire header cell width - Resolved issue Clicking on the record table header's empty area doesn't show option until clicked on it's text #9286 where dropdown options were only appearing when clicking directly on text elements
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
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.
PR Summary
(updates since last review)
No major changes found since last review. The only modification is changing the CSS selector from & > div
to & > :first-of-type
in StyledColumnHeadContainer
, which is just an alternative implementation of the same fix that was already covered in the previous review.
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
Hey great! I checked and it works but to be honest I don't understand the fix. Would you mind explaining / do you know when this bug was introduced? Thanks a lot |
@FelixMalfait The Screencast.from.2024-12-31.20-31-51.webmI could have resolved it by styling that particular unstyled div to take the full width of its parent. This is much simpler. However, this could have caused regression to other components with the dropdown. So, for the safer side, I went with targeting that div from the |
@FelixMalfait I will try once going with the first approach of styling that div with |
Very clear thank you @harshrajeevsingh! I agree 100% would be more clear to the external reader. Let us know if it works or not and if not I agree we should merge your fix! |
@FelixMalfait It seems that my intuition was correct here :) Giving Screencast.from.2025-01-01.02-01-07.webm |
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!
Log
|
Fixes: #9286