-
Notifications
You must be signed in to change notification settings - Fork 843
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
Docs homepage rework, colors guideline + misc fixes #494
Conversation
OK. Think this one should be good to go. No hurry, but if you have time @cchaos to spin this up and just do a visual check I'd appreciate it. Based on the accessibility values I was seeing from the tests, I had to bump up the contrast on |
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.
Overall I think this is a more helpful landing page. I do want to tweak the block form images a bit (there's some size inconsistencies I wanna twiddle with). But that isn't necessary to get this PR in.
src-docs/src/views/home/home_view.js
Outdated
image="https://i.imgur.com/UfigGiQ.png" | ||
title="Tables" | ||
isClickable | ||
description="Example of a card's description. Stick to one or two sentences." |
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.
Still using placeholder text here.
src-docs/src/views/home/home_view.js
Outdated
the <a href="https://www.elastic.co/guide/en/kibana/current/kibana-plugins.html">plugin-specific section</a> for | ||
help developing Kibana plugins. You can find the source for the <a href="https://github.com/elastic/eui">Elastic UI Framework on GitHub</a>. | ||
The Elastic UI framework (EUI) is a design library in use at Elastic to | ||
build internal products that need to share our branding and look and |
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.
Change "branding and aesthetics"
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.
Done.
</Link> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<Link to="/navigation/button"> |
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.
Should we link them to the buttons guidelines page instead?
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 think people will want the code first? I'd want the code first? haha. I dunno. I'll leave it for now and we can change as we see what people want.
$euiColorAccent: #DD0A73 !default; | ||
$euiColorHighlight: #FFFBF1 !default; | ||
$euiColorGhost: #FFF !default; | ||
|
||
// Status | ||
$euiColorSuccess: $euiColorSecondary !default; | ||
$euiColorDanger: #A30000 !default; | ||
$euiColorWarning: #E5830E !default; | ||
$euiColorWarning: #C34A1E !default; |
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.
What do you think about #D43900 instead? It's just slightly more saturated than what you have here and I think helps to separate it a bit more from the danger color.
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 had to darken your color by a smidge to get it to pass AA on euiColorLightestShade
. I'm using that as our minimum contrast color combo because it normally means the color will work on things like callouts as well.
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.
Either way, feel free to adjust this once its in. I'm not super happy with some of these myself, but at least they are one-liner changes and we can test them quick.
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.
Ah ok.
@cchaos feedback addressed. I put the blockforms on sketch. Feel free to adjust them however you see fit. For some reason I had trouble exporting SVGs, but that would help them scale a little better in the page. Right now they get a bit crushed depending upon your browser window. |
Homepage + colors guideline
Colors
does a better job of highlighting our color accessibility.sass-vars-to-js-loader
which allows me to pull in sass variables as JS vars.calculateContrast
returns the contrast value of any two colors passed.rgbToHex
will convert the color system of a passedrgba
value. This bookends nicely against our existinghexToRgb
services function.Misc fixes
EuiBadge
to be aspan
instead of adiv
. This allows it to sit within paragraphs.logoGithub
andlogoSketch
EuiCard
now accepts ahref
prop.isClickable
is now also a distinct prop in case you need to wrap using React'sLink
or have other reasons for the hover effect.EuiFlex
where nested flexgroups wouldn't respond to theresponsive={false}
prop.EuiImage
doc images with something more random / permissions friendly.Todo
Todo in a later PR