Open mattkime opened 2 years ago
Pinging @elastic/kibana-app-services (Team:AppServicesSv)
@mattkime Can I look into this?
@rushilp2311, sure! Go ahead :)
@elastic/kibana-design could you suggest a good fix here?
Things I've considered:
Force internal horizontal scroll:
Force switch table to mobile mode (not sure if this is allowed by EUI, maybe will need to add a prop to allow it):
@elastic/kibana-design could you suggest a good fix here?
Hi, @Dosant! I'm coming into this conversation a bit sideways, but I did have a quick thought regarding one possible way to address your color formatting spatial concerns. I've put together a quick little mockup below of that thought:
I thought it may be better to save space by taking advantage of the fact that EuiColorPicker
can use a custom button to trigger the color selection popover (example in EUI docs). In this example, I'm using a slightly modified EuiButton
that uses an EuiColorPickerSwatch
as a child instead of text and has no minimum width. I've also applied a prepend label to the regex input, removed the containing table (since I thought the labels provided were sufficient to no longer require column headings), and suggested adding a link for folks to get some help on regex syntax.
Let me know if this suggestion helps, or if you require additional support. Thanks!
One way to save a bit more horizontal space would be to remove the switch for formatting and simply show 'Default'.
When turning on the switch, it currently just shows 'Default', which is a bit odd to me.
This would likely mean having to move the switches for the other 2 options as well. (Probably need to include 'Off / On' after the switches as well. Doesn't fully solve the issue, but may save a bit more room and solve a UX bug as well.
I def like the above suggestion to the color formatter—do we need to include the output example somewhere too?
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)
hi is anyone still working on this? If not I'd like to contribute a PR as a community member.
Hi @Dripcoding,
Thanks for your interest in solving this issue! Seems like nobody is working on it at the moment. How would you approach it?
@jughosta I would move away from using the table component and favor using a card for each format definition. @MichaelMarcialis solution looks like a good starting point.
I would try using a non-interactive card with a border to make it clear that each format definition is separate from subsequent definitions. Each card could have a row to show the inputs horizontally as in Michael's mock and another row below it to show the example of the applied color formatting and the delete icon.
Let me know if that sounds reasonable to you.
@Dripcoding Sounds good! Let's maybe start with a PoC for your suggestion before committing fully. Thanks!
The current field formatter color selector doesn't show the hex values -
...because they're hidden due to rendering constraints (modified via dev tools) -
The layout should be altered so the user can see and edit these values. Discovered on 7.15.2 and verified on main/8.1.