-
Notifications
You must be signed in to change notification settings - Fork 27
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
Use react-select in variable dropdown for better UX #4675
base: master
Are you sure you want to change the base?
Use react-select in variable dropdown for better UX #4675
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4675 +/- ##
==========================================
- Coverage 96.61% 96.56% -0.05%
==========================================
Files 746 746
Lines 25144 25174 +30
Branches 3302 3310 +8
==========================================
+ Hits 24292 24309 +17
- Misses 589 601 +12
- Partials 263 264 +1 ☔ View full report in Codecov by Sentry. |
src/openforms/js/components/admin/forms/VariableSelection.stories.js
Outdated
Show resolved
Hide resolved
The chromatic tests are failing because either the DMN variable options aren't loaded yet, or for some reason the DMN select cannot be done correctly (This second fail is also inconsistent. Sometimes it succeeds, sometimes it fails...) Maybe we should remove the dmn variable select check from the "Empty" DMN Action configuration test scenario |
714b630
to
7519e29
Compare
} | ||
|
||
// The selected option only shows the label | ||
.admin-react-select__value-container & { |
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.
we have src/openforms/scss/vendor/_react-select.scss
, but I need to take a proper look at how this sass is structured still! more feedback will come
edit: nvm, I noticed you found that file :)
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.
Yeah, I put it here to keep all the .form-variable-dropdown
styling contained to this file :)
.admin-react-select__menu { | ||
z-index: 10; | ||
} |
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.
magic z-index numbers usually hint at the stacking context not being as expected - perhaps there's a better solution?
@stevenbal this may also be what you are running into with the prefill modal
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'll take a look if this can be solved in another way 👍
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 was needed, because the .submit-row
would be on-top of the react-select menu. The z-index on the .submit-row
was added because of an issue with the z-index of the tinymce.
I've changed the styling of the .submit-row
and the tinymce to prevent this stacking issue. (And removed this z-index styling from the .admin-react-select__menu
)
Marked SelectWithoutFormik as deprecated
Added sources and formDefinitions. This allows for the testing of the new VariableSelection react-select grouping
daa0d1a
to
b84481b
Compare
…yling issue/4711-form-row-styling
Marked SelectWithoutFormik as deprecated
Added sources and formDefinitions. This allows for the testing of the new VariableSelection react-select grouping
…iable-dropdown' into feature/4524-react-select-in-variable-dropdown
Closing in favour of #4730 |
Closes #4524
Changes
The variable dropdown now uses the react-select component. Allowing for searching within the options
Checklist
Check off the items that are completed or not relevant.
Impact on features
Release management
I have updated the translations assets (you do NOT need to provide translations)
./bin/makemessages_js.sh
./bin/compilemessages_js.sh
Commit hygiene