-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
EUI 5.8.1 comes with a brand color refresh. Also removes lots of KUI #27009
Conversation
Pinging @elastic/kibana-design |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
jenkins, test this |
💔 Build Failed |
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.
$kuiTextColor: #2d2d2d; | ||
$kuiLinkColor: $kuiColorBlue; | ||
$kuiTextColor: $euiTextColor; | ||
$kuiLinkColor: $euiColorPrimary; | ||
$kuiLinkColor-isHover: darken($kuiLinkColor, 10%); | ||
$kuiInputTextColor: $kuiTextColor; | ||
$kuiInputBackgroundColor: $kuiColorWhite; |
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 don't think this is going to work very well if it ever exists in dark theme as $kuiColorWhite
is ghost
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.
KUI has it's own variables for dark mode :/
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.
That said, I need to check more into the dark theme coloring. I see some breaks this introduced.
💔 Build Failed |
💔 Build Failed |
This is closer. I need to figure out the test failures happening in dashboards and do some IE11 / dark mode testing. I think it's questionable whether we should do this for 6.6. It's a big PR that makes some aggressive changes and rips out tons of unused code. I was able to style the K6 global nav to use our icons, which looks cool, but will likely surprise a lot of people. |
💔 Build Failed |
💚 Build Succeeded |
@cchaos This now passes and is merged up. If you can during your morning, feel free to do a more thorough check. You're welcome to commit directly or just give a PR if you notice anything sizable. |
I think we should be good to go. I thought about doing some more tweaks in the theming LESS styles, but I've already completely gotten rid of those in my next SASS conversion PR. So we can just wait for those final color conversions in that PR. But I'd really like to get this one in first. |
Merged back up to master. Once tests pass I'll be merging this one. |
💔 Build Failed |
💚 Build Succeeded |
…lastic#27009) EUI 5.7.0 had a color refresh which switched around our palette to better match branding guidelines. Hex colors are still hard coded in large parts of Kibana so most of the changes not in kbn/ui-framework are simple shifts to match that styling.
…f KUI (#27009) (#27429) * EUI 5.8.1 comes with a brand color refresh. Also removes lots of KUI (#27009) EUI 5.7.0 had a color refresh which switched around our palette to better match branding guidelines. Hex colors are still hard coded in large parts of Kibana so most of the changes not in kbn/ui-framework are simple shifts to match that styling. * snapshots
Summary
For team review pings:
Color refresh
EUI 5.7.0 had a color refresh which switched around our palette to better match branding guidelines. Hex colors are still hard coded in large parts of Kibana so most of the changes not in
kbn/ui-framework
are simple shifts to match that styling.Styling of KUI
KUI now imports the EUI global scope. I went through and touched a lot of the global variables in KUI to better match EUI. Outside of the coloring, I did some very minor work around KUI form fields and the verticalRhythm component.
Removal of many KUI components
KUI remains deprecated since 6.2.0 but still exists. I went ahead and removed any components and styling that were no longer being used in Kibana and then removed several KUI components that were being minimally used by replacing them with EUI styling, using EUI components or selectors instead. This resulted in KUI being a little under half its original size and is the reason this PR has such a large negative number.
Global nav cleanup
With the color change the global nav icons in the K6 nav was really off. I went ahead reworked them to use EUI icons and cleanup them up stylistically. The static images are still available if no EUI icon is used so this is backwards compatible and should be fine for custom plugins outside of core Kibana.
Tests
The color changes required me to rebuild the baselines for the TSVB screenshot. We have a lot of hard coded hex values that in turn are converted back and forth between rgb and hex. In one case I chose not to not change an advanced setting default to match our new colors because the tests went a little nuts. It's the green color and is mostly close to what we're using in both palettes. I'd like to do a later sweep there and make these tests less reliant on copy / paste codes, but given FF timing, I'm just avoiding that value for now.
Updates EUI to 5.8.1 from 5.6.2
5.8.1
Note: this release is a backport containing fixes made in
6.0.0
Bug fixes
5.8.0
Note: this release broke some of the exported TypeScript definitions.
onBlur
action onEuiComboBox
(#1364)Bug fixes
onCreateOption
callback ofEuiComboBox
so it isn't called when the input is empty (#1364)anchorClassName
prop toEuiPopover
(#1367)fullWidth
onEuiSuperSelect
(#1367)EuiSuperSelect
from accessing ref when unmounted (1369)EuiIcon
(#1370)5.7.0
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers