Skip to content
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

Amsterdam euiFilterGroup have a sharp angle border on rounded buttons #3590

Closed
phyolim opened this issue Jun 10, 2020 · 5 comments · Fixed by #3591
Closed

Amsterdam euiFilterGroup have a sharp angle border on rounded buttons #3590

phyolim opened this issue Jun 10, 2020 · 5 comments · Fixed by #3591

Comments

@phyolim
Copy link
Contributor

phyolim commented Jun 10, 2020

current:
Screen Shot 2020-06-10 at 1 13 57 PM

proposed:
Screen Shot 2020-06-10 at 1 36 16 PM

I believe this is a simple fix of adding a overwrite for euiFilterGroup css with border radius and box-shadow. I'd like to submit a PR.

@cchaos
Copy link
Contributor

cchaos commented Jun 10, 2020

Thanks @phylim for catching this one. Amsterdam is a very new theme and we're still working on a lot of downstream component fixes.

For this component in particular, I'm not quite sure your proposed solution is what we're aiming for. Instead, what we'd like is to keep them looking a single group. They'll most likely need to align with how we will be updating our form elements which we are still working on.

But for a quick fix, it seems the problem is stemming from the fact that .euiButtonEmpty styles are overriding the .euiFilterButton styles. So likely we just need to 0 out be border-radius on the filter button and ensure it sticks with !important.

Screen Shot 2020-06-10 at 14 52 03 PM

@phyolim
Copy link
Contributor Author

phyolim commented Jun 10, 2020

Ah Ok. That makes sense. Should it have shadow? Looks like other Buttons don't have shadow in Amsterdam.

@cchaos
Copy link
Contributor

cchaos commented Jun 10, 2020

We style EuiFilterGroups more like or form inputs and not like our buttons though they render buttons underneath. Therefore, we should be aligning the styles to forms. Currently they do so by using the same SASS mixins from our form mixins, and so we should leave those as-is until we update the mixins themselves.

@phyolim
Copy link
Contributor Author

phyolim commented Jun 11, 2020

new proposed:
Screen Shot 2020-06-11 at 11 36 14 AM

@cchaos
Copy link
Contributor

cchaos commented Jun 11, 2020

Yep, that would be great thanks!

cchaos pushed a commit that referenced this issue Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants