Skip to content
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

fix: no focus border on date cells #1469

Merged
merged 4 commits into from
Dec 21, 2022

Conversation

Eakam1007
Copy link
Contributor

@Eakam1007 Eakam1007 commented Nov 21, 2022

Fixes #1414

Added a focus border to date cells if the popup is open:

image

@Eakam1007 Eakam1007 marked this pull request as ready for review November 21, 2022 01:20
@Eakam1007 Eakam1007 force-pushed the fix-date-cells-border-1414 branch from af297c6 to 3458f43 Compare December 5, 2022 07:28
@Eakam1007 Eakam1007 requested review from richardshiue and removed request for appflowy December 6, 2022 15:33
Copy link
Collaborator

@richardshiue richardshiue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@annieappflowy annieappflowy added grid features related to the table-view database improvements improvements on an existing feature labels Dec 7, 2022
@annieappflowy annieappflowy added this to the v0.0.9 milestone Dec 7, 2022
Copy link
Collaborator

@richardshiue richardshiue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @Eakam1007, I missed the fact that the GridCellState itself already has a method called requestBeginFocus() that is hooked up to listen for focus changes. You can move those two lines from onTap() to the override implementation below. After doing this, you can also get rid of the GestureDetector so that the immediate child of SizedBox.expand is the Align. Sorry for the mixup

Copy link
Collaborator

@richardshiue richardshiue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, for real this time. Thanks for contributing @Eakam1007!

@appflowy appflowy merged commit 873a46e into AppFlowy-IO:main Dec 21, 2022
LucasXu0 pushed a commit to LucasXu0/AppFlowy that referenced this pull request Dec 23, 2022
* fix: no focus border on date cells

* fix: remove redundant import

* refactor: use existing functionality from GridCellWidget for focus border

* refactor: use requestBeginFocus override instead of GestureDetector
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grid features related to the table-view database improvements improvements on an existing feature
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Bug] No focus border on date cells
4 participants