-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Lens] Color Mapping style Enhancements #167703
Comments
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
Just to be sure: 24px is the default (
I'm fine with that, that was my first idea initially. can you please provide an example on how it should looks like?
Could you please also give me an idea on how it should look like, because read-only looks like this today:
The problem here is that we changed that to
I personally think that automatic swapping is not a good practice, mainly because we don't have a nice way to animate/show what is going on. You just swap things in the background and the user possibly not even notice that.
This is what happen if I change the title to be the previous 14px and the section titles to be 12px, are you fine with that? |
Great catch, @markov00! This is actually an EUI bug. Looks like when they switched from using margins to the
I've updated my original comments above to include a quick mockup of these possible directions.
Yeah, the read-only styling for form components like @1Copenut, assuming you agree this form element should be read-only instead of disabled, do you also agree with the styling comments above? If so, I can write up an EUI issue for this. @markov00, in the mean time, we can continue to use disabled until improvements are made to the read-only styling.
Ah, that makes sense. If it's not possible for us to dynamically position the popover based on the tallest content (either "Colors" or "Custom" tab), then we can keep as is.
I appreciate that perspective. In this particular case though, I don't believe such behavior would be perceived as our tricking the user. I believe it honors the user's request in the more expedient manner. In this scenario, the user is requesting that we assign a term to a color. If that term is already in use, the user either 1) isn't aware that this term is already being assigned to another color, or 2) knows that it is assigned to another color but wishes to change it. In both cases, automatically swapping the term out of it's old assignment and into the new one makes sense and benefits the user. That said, I wouldn't be opposed to bolstering that experience with some animation to make it even more obvious. Thoughts?
Yes, this (in addition to 8px of margin below the titles) is exactly what I had in mind. Thanks! |
Yes, I agree this would be better served as read-only instead of disabled. Read-only lets screen readers hook into the input text and announce it instead of hiding the input as a tab stop. Screen reader users can hear the disabled input in the forms menu and if they're traversing with arrow keys, but a lot of folks use the
Agreed, |
Lots of related history that I don't have the capacity to read through and grok, so this might be retread of a previous discussion. I've talked with folks who have a few different analytic tools seeking consistency among color schemes and maps. The one provider I've heard a few times is HoloViz Colorcet. The ask would be for some means for us to leverage 3rd party libraries within Lens and Maps. |
Hi @MichaelMarcialis if "Technical preview" is too long, let's please go with the badge and tooltip option. |
@mbarretta I believe this can be achieved when we introduce palette editing/authoring. Categorical color mapping can be added quickly and easily, probably a bit more complex could be the gradient coloring that in some cases is not just a pure interpolation between colors but are specific functions with their own weights. |
@markov00 Nice! Is this the right issue to follow for that, or is there another one out there? |
@mbarretta I've created an issue here for that #172139 |
@teresaalvarezsoler: I've re-reviewed this list. Most of the items have already been addressed or are no longer valid. I've checked off those ones from the list. The small remainder of open issues and questions are as follows:
|
@MichaelMarcialis thanks. Let's not do any of the items related to the switcher and the Technical Preview badge. I think we need to focus on how to make this GA and get rid of both things altogether. Let's also not do the timestamps improvements until we hear any feedback from actual users. I don't think colouring timestamps is a common practice.
I don't understand this issue. What is it about? I think we should close this issue and open a new one that contains only the few remaining px adjustments so we can assign proper effort and impact in our next triage session. |
The areas indicated in red show a mouse pointer cursor on hover, but clicking doesn't actually open the color mapping interface. Will try to show in a GIF below.
Sounds good! Let me know if you want me to write it up or if you're already on it. |
Ah I see now. Thanks for clarifying. Can you better go ahead close this one and create the new issue please? I don't want to miss anything that you think it's necessary. |
Let me begin by giving you proper praise for your beautiful work on the Lens color mapping PR, @markov00! It was a real delight to work with both you and @gvnmagni on this feature. Seeing it come to life has been nothing short of amazing.
Per your request, I've reviewed the latest updates and compiled a list of update comments for you below. As always, let me know if you have any questions.
Responses to previous comments
Including this here so we can get input from @ninoslavmiskovic and @timductive.
<EuiTitle size="xxxs">
components from the tabs to the titles below?Certainly, I'd be happy to help with this one. Feel free to pop some time on the calendar if you want to do some CSS pairing.
euiTheme.colors.emptyShade
background color.euiTheme.colors.subduedText
icon color.euiTheme.colors.text
icon color on hover/focus.New comments
Root-level configuration flyout
Change the root-level flyout's color mapping edit icon button to use
color="text"
.Attempting to click the top or bottom portions above or below the color mapping preview strip doesn't open the second-level color mapping flyout, despite showing a pointer icon on hover. Only clicking directly on the preview strip does it function correctly. Can we correct this so the pointer is only shown on areas that will trigger the second-level flyout?
Can we add a tooltip to edit icon button that says "Edit color mapping"?
Color configuration flyout
Opt-in switch
For the new color mapping switch, would you be open to the idea of moving it out of the flyout's main content and relocating it to the flyout header or footer? I think moving it to the header makes sense hierarchically. Though the footer helps not make it the most prominent element in the flyout. In either case, it helps visually separate the switch from the main color configuration form. Below are some quick mockups of these concepts. Thoughts?
Change the "Use the new Color Mapping feature" text to "Try new color features".
Are we allowed to abbreviate "Technical preview" to "Tech preview" (CCing @amyjtechwriter)? If not, yet we still wish to be more succinct than to spell it out fully, perhaps a icon-only badge or beta badge (with accompanying tooltip) would be most appropriate?
Scale button group
The horizontal space between this button group and the preceding "Color palette" selector is currently 24px. Can we reduce this to 16px?
It appears that the currently selected button's icon still doesn't show a white fill color. Are we using the new icons added to EUI? Or are these still the custom icons? If custom, can we switch the EUI versions (assuming EUI has been updated in Kibana)?
Mapping assignments
General
The space between "Mapping assignments" and the preceding "Color palette"/"Scale" rows is currently 8px. Could we change this to 16px to better match EUI form row spacing?
The space between the "Mapping assignments" label (and "Auto assign" switch) and the subsequent gray container is currently 8px. Can we change this to 4px to better match EUI form label spacing?
The "Mapping assignment"
label
element doesn't currently indicate what element it applies to (ex. via thefor
attribute). Could we account for this as an accessibility enhancement (similar to what we do for other areas of Lens, like multi-field top values)?Can we add a 6px border-radius (
euiTheme.border.radius.medium
) for the gray container housing the mapping assignments? Doing so would help to better match with similar interfaces in Lens.The mapping assignment delete buttons aren't visually vertical centered with a single line combobox. I'm guessing this is due to the top-aligning of the contents for each mapping row that we discussed for the multiline combobox situations. Would it be possible to give these delete buttons the impression of being vertically centered on in those single line combobox instances by pushing the delete buttons down a few pixels (4px)?
Please forgive this tiny nitpick, but could we adjust the dividing border above "Unassigned terms" to touch the horizontal bleeding edges of it's gray container?
Semantic question: should the "Unassigned terms" input be read-only (rather than disabled)? I'm going back and forth in my head, but leaning towards read-only as this particular input never has the possibility of being enabled or having its value changed. Thoughts? CCing @1Copenut as well, in case he has any thoughts from the accessibility side.
If a sequential color scale is in use, could we add some space to the left of the "Unassigned terms" color swatch to offset it enough to account for the gradient slider and bring it back in alignment with the color swatches that appear above it?
Color picker popover
Under the color picker popover's section titles ("Palette colors" and "Neutral colors"), can we add 8px of spacing between them and their subsequent color swatches?
Let's change the color picker popover'sanchorPosition
to bedownLeft
. Doing so will prevent the popover contents from jumping around when transitioning between the "Colors" and "Custom" tabs, or when the color contrast warning appears (assuming the viewport has space to do so).For the hex value input in the color picker popover, if the user clears the input or supplies an invalid value, we immediately hit them with an error message and text. Would it be better (and less stressful for users) to not show the input in error and instead just restore the last valid value on blur of the input? We appear to already be doing just that on close of the popover anyway.
The text was updated successfully, but these errors were encountered: