| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
PatternFly-React preview: https://patternfly-react-pr-3360.surge.sh |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #3360 +/- ##
==========================================
- Coverage 67.49% 67.47% -0.02%
==========================================
Files 897 897
Lines 25158 25166 +8
Branches 2181 2187 +6
==========================================
+ Hits 16980 16981 +1
- Misses 7162 7163 +1
- Partials 1016 1022 +6
Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was a problem hiding this comment.
I'm having trouble using keyboard navigation. When I press enter, focus is not placed on the options. Thus, I cannot use the up/down arrows to navigate the grouped options. This keyboard navigation appears to work with the other option examples.
Sorry, something went wrong.
There was a problem hiding this comment.
This looks good to me, @nicolethoen . But just one question. Can I apply grouped items with titles to either a single select or multi-select option list? If so then I'm good to approve.
Sorry, something went wrong.
| /** Provides an accessible name for the Options menu items group */ | ||
| ariaLabel?: string; | ||
| /** TODO */ | ||
| groupTitle?: string | React.ReactNode; |
There was a problem hiding this comment.
should we change this to label to match the app launcher and dropdown components?
Sorry, something went wrong.
There was a problem hiding this comment.
i think that would be a breaking change at this point...
Sorry, something went wrong.
There was a problem hiding this comment.
Isn't this an internal Class? Changing the name should be ok if that that is so. We already changed the name of the Class itself correct?
Sorry, something went wrong.
There was a problem hiding this comment.
It's not an internal class, so I actually might need to change the name back.
Sorry, something went wrong.
| menuItems={menuGroups} | ||
| toggle={toggle} | ||
| isOpen={isOpen} | ||
| isGrouped /> |
There was a problem hiding this comment.
if isGrouped, the .pf-c-options-menu__menu should be a <div> instead of a <ul>. The dropdown and app launcher work that way if it helps to use as a reference.
Sorry, something went wrong.
There was a problem hiding this comment.
hm... the menu is built using the dropdown pieces so i'm surprised that didn't behavior come for free. Nice catch. I'll look into it
Sorry, something went wrong.
| /** Provides an accessible name for the Options menu items group */ | ||
| ariaLabel?: string; | ||
| /** TODO */ | ||
| groupTitle?: string | React.ReactNode; |
There was a problem hiding this comment.
Isn't this an internal Class? Changing the name should be ok if that that is so. We already changed the name of the Class itself correct?
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
There was a problem hiding this comment.
👍 Thanks @nicolethoen!
Just a note, if you pull in core v2.44.3, it will fix some extra space that shows up above group titles.
Sorry, something went wrong.
There was a problem hiding this comment.
keyboard navigation appears to be working now. Thanks!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Addresses #3338
Follow up to core PR #2403