-
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
[Unified Search] Change filter styling #200675
[Unified Search] Change filter styling #200675
Conversation
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
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.
LGTM
@kowalczyk-krzysztof I played with it and I don't think it's a good UX to use the tag. can we bold the AND's and ORs instead? I think that could at least nudge it in the right direction thanks for flagging it |
@ghudgins Sure, I got rid of the badge and made it so it's |
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.
Hi @kowalczyk-krzysztof, thanks for taking this on. After revising the design proposed last year I have an updated proposal. See:
Essentially I think we should increase the font size and reduce the font weight, this will help with readability and reduces visual noise. Also, instead of using the warning
EuiBadge we should use the hollow
EuiBadge (I checked with Graham and he's onboard).
Also can you add some padding above the Preview
heading? Something like 16px or 24px should work (see the screen attached to see how it should look).
@andreadelrio |
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.
@kowalczyk-krzysztof thanks for the updates. I'm still seeing some Preview text in 12px, please change to 14px.
src/plugins/unified_search/public/filter_bar/filter_editor/filter_editor.styles.ts
Outdated
Show resolved
Hide resolved
@kowalczyk-krzysztof please see: |
src/plugins/unified_search/public/filter_bar/filter_editor/filter_editor.tsx
Outdated
Show resolved
Hide resolved
Thanks for the feedback @andreadelrio - I'll make the requested changes, however, when it comes to cc: @ghudgins |
I caught up with @andreadelrio and think we can proceed with her recommendations even though it's going in both places |
💚 Build Succeeded
Metrics [docs]Async chunks
History
|
@ghudgins |
yes, looks good to me. just checked it out on the branch. @andreadelrio any concerns? |
The introduction of the badge inside the pill makes pills look slightly more chunky (see image attached). This is an issue because we're trying to make our UI elements compressed (already did with controls, Unified Search bar will follow). There's also the issue of it kind of looking like a filter pill is inside another filter pill which is not the case. @kowalczyk-krzysztof can you confirm whether the effort to keep the styles separate be too big? |
@andreadelrio Yeah I couldn't really figure out a way to properly separate the styles and I still don't think it's a quick change and the level of effort required might be too big, considering this was supposed to be a papercut. The easiest solution would be just to give up on the badge and keep it as text in both places. |
if there's nothing we can do about the vertical space we're creating in the pills then yeah we should close the PR. sorry for the runaround.... |
Summary
This PR changes filter styling to match suggestion proposed here.
Closes: #158875
Visuals