mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-13 11:17:26 +02:00
Instead of closing the "add values" popover when you add a value, we now keep it open to facilitate rapid entry of multiple values. It already clears successfully and adds the new value to the list, so it's actually quite smooth to use from just the keyboard now! Additionally, I propose using a `form` element for the add values popover, because it really is just a tiny form. This also allows us to use regular form handling instead for submission instead of checking what key the user pressed. It also means we don't need to specify the action in the button, because the form handles it. There's a few more things fixed: - I've added a label (only visible to screen readers) to the input label (as per standard a11y guidelines). - When you add a value by pressing the "add" button, your focus returns to the input field, so that you can just start typing out the next one. this is handy if you submit by mouse click or by tabbing to the button instead of just hitting enter inside the input field. |
||
---|---|---|
.. | ||
FeatureStrategyConstraintAccordionList | ||
ConstraintOperatorSelect.tsx | ||
EditableConstraint.tsx | ||
EditableConstraintWrapper.tsx | ||
FeatureStrategyConstraints.tsx | ||
ValueList.tsx |