-
Notifications
You must be signed in to change notification settings - Fork 842
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
EuiColorStops #2360
EuiColorStops #2360
Conversation
Thanks for changing the arrow keys, this feels much better! |
@thompsongl Here is a design PR with minor changes to cursors and new stop styles. 👉 PR => thompsongl#8 I also found a couple of issues:
|
Update color stop styles
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.
Some small functionality comments. I didn't dig too far into the JS. Functionality seems pretty awesome. ⭐️
Cleanup of thumb display
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.
Didn't find any big issues, very nice work everyone!
I'll give this a shot |
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.
Tested new additions. They work how I'd expect. From a functional / design / accessibility standpoint this LGTM.
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.
Looks and works great. Just a couple of docs feedback items (one may be a repeat of Chandler's feedback):
- What is the intent of the 'Prop Change' button up top? It wasn't clear to me, but it seems to reset the colors/defaults? If that stays, the wording could be clearer and it may also benefit from looking like a button with a spacer below it.
- The last example would benefit from a label - something like 'Custom example'. Going a step further maybe these should be its own stand along section on this page? ( cc:/ @snide )
That z-index hover change is, IMO, much better, thank you! |
Removing this. It was just there for me to ensure prop changes would propagate.
I'm going to rearrange the whole thing, but I did find that the "Display toggles" component doesn't work with form rows |
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.
Yasssss. Great work on the docs cleanup!
Is there a way to make |
Currently, no, but we can work out a way where users would be able to define the bounds. Basically, there would always be two stops (one at each end) that will accept any number. @snide @ryankeairns Is this something we want to add to this PR or do a follow-up? |
@thompsongl since maps is the only known consumer for this one, i think we'd need to add that functionality in before we delivered it. You could always merge now if you just want to make the review smaller for the new functionality. |
I think a smaller, focused review on the new functionality would be better. I can merge this and follow up. |
😄 I know why that is. I'll fix it before merging this |
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.
Changes LGTM; pulled and tested locally, only issue found is an edge case in using keyboard navigation to create a new color stop
Sounds great to merge as-is and then add a follow up PR to allow setting min and max. |
* WIP * WIP: scaling clean up * reverse up/down keys * add left/right movement * update test * doubleClick addStop; clean up; tests removal * use more range components directly * Firefox cleanup * i18n; refactor * WIP: add new stop via click * clean up * better keyboard interaction * add stop styles * empty set; backspace fix; drag handle fix * readOnly and disabled * screen reader * more i18n * cleanup of thumbs * Update src/components/color_picker/color_stops/color_stop_thumb.tsx Co-Authored-By: [email protected] <[email protected]> * thumb title * required label * misc feeback * update zIndex for active thumb * docs refactor * util; basic snapshot tests * color stops tests * thumb snapshot tests * CL * use sorted array for add via keyboard location
Summary
Closes #2344 (see full description & background in the issue)
Checklist