-
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
[Security Solution][THI] - remove usages of EUI tint, shade and transparentize functions #205223
[Security Solution][THI] - remove usages of EUI tint, shade and transparentize functions #205223
Conversation
…parentize functions
Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations) |
adding @l-suarez to have a look at this, thx 🙏 |
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.
I checked this out quickly today and agree we should get some design input for the table row hover styles. Using the same colour for both row striping and hovering makes the hovered row blend in more and less easy to identify in wider tables, but I'm not sure of an alternative without using tintOrShade
. I'll ask the EUI team to take a look in Slack too in case they have ideas.
For reference, I tried out $euiColorLightShade
for hovering too, but it seemed pretty harsh compared to before IMO.
@davismcphee: In case it helps, I think data grid row hover would call for using |
1e818e7
to
fb383d6
Compare
@PhilippeOberti I hope you don't mind, I merged main and pushed a commit to adjust Unified Data Table to use @MichaelMarcialis Thanks for the hint. I was chatting with EUI folks earlier and they pointed me in a similar direction too, so I gave it a shot. For context, the issue was that for Amsterdam we have an override since the default data grid styles use a yellow highlight that we didn't want (I'm guessing since it conflicts with our "expanded" row styles). The hover styles have been changed in Borealis, but I believe we're supposed to maintain support for both Amsterdam and Borealis in I pushed a change to use |
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 like CI is green now so I'm gonna approve from the Data Discovery side since I'm good with the current row hover override until we can remove it when Amsterdam is retired 👍
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 from EUI side
💔 Build Failed
Failed CI StepsHistory
|
Summary
This PR is part of a list of PRs to perform the changes necessary to get the new Borealis theme working correctly. It focuses on removing the
shade()
,tint()
,shadeOrTint()
,tintOrShade()
andtransparentize()
functions.2 places have been impacted:
Light
Dark
Light
Dark
Light
Dark
Notes: one usage of the
transparentize
function was left untouched here. This is a custom OverlayMask and this code replicates what's being done in the EUI codebase. I checked and EUI is still using thetransparentize
method with that color, so I figured I would keep this untouched for now...#201888