-
Notifications
You must be signed in to change notification settings - Fork 376
feat(card): add selectable and selected variation #3587
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
Conversation
|
PatternFly-React preview: https://patternfly-react-pr-3587.surge.sh |
Codecov Report
@@ Coverage Diff @@
## master #3587 +/- ##
==========================================
+ Coverage 71% 71.01% +0.01%
==========================================
Files 785 785
Lines 10638 10643 +5
Branches 2314 2319 +5
==========================================
+ Hits 7553 7558 +5
Misses 2655 2655
Partials 430 430
Continue to review full report at Codecov.
|
dlabrecq
left a comment
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 @boaz0! when |
mcoker
left a comment
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! @jessiehuff should this also work with a keyboard?
jessiehuff
left a comment
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.
This looks good @boaz0 :) There is an issue with keyboard navigation though. If you add an action inside the card like a button or a link, when you select that action, the entire card becomes selected. I noticed that this is also an issue with our selectable data-list and created an issue for it. I think the event listener is stopping the event propagation.
tlabaj
left a comment
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.
Can you add the new props to the demo-app and add integration test please.
tlabaj
left a comment
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.
Could you also create a cypress test for the interaction.
tlabaj
left a comment
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
dlabrecq
left a comment
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 no longer see an issue navigating the kebab, and was able to select a card with the mouse. However, I could not select a card using just the keyboard.
Should users be able to select cards using either the enter key or the space bar?
jessiehuff
left a comment
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.
Hey @boaz0, it's looking good so far! :) I just took a look at it again, and what's happening to Dan is also happening to me. Navigating and interacting with the action button works great, but I can't seem to find any way to select the card at all now. My thought is that pressing enter or space on the entire card/parent would select the card but pressing enter or space on the kebab/action would open the dropdown.
Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
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.
tlabaj
left a comment
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
What: Closes #3537
//cc @mcoker @tlabaj