-
Notifications
You must be signed in to change notification settings - Fork 841
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] Last move of tokens, Colors, to single page #5378
Conversation
…bdued (match that of the title border)
Preview documentation changes for this PR: https://eui.elastic.co/pr_5378/ |
Re:
Does it make sense to wait for @miukimiu's guidelines PR to merge in since you'll get a tabbed page API that auto-hooks into routing & search at that point? |
Yep! I'll remove that item from the PR summary. |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5378/ |
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.
Looked at "Color" and "Color functions" respective pages in Chrome, Safari, Edge, and, Firefox. Also looked at the code.
LGTM! 🎉
return { | ||
id: color, | ||
token: `colors.${color}`, | ||
type: props[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.
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.
They don't technically have a type because they're hard-coded to these values.
Looking into this. Not much changed so I'm not quite sure what's going on yet |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5378/ |
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!
Thanks @miukimiu ! And thanks @thompsongl for also fixing customize page. I think it's a little wonky that the color picker's popover auto closes after every change (it also makes it near impossible to use the keyboard), but maybe that's a limitation of the EuiColorPicker itself that would need to be fixed there? |
Oh I didn't notice that. But it is not a limitation of the color picker itself. I forced |
9e6c79b resolves the color picker state issues |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5378/ |
Works perfectly, thank you @thompsongl ! |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5378/ |
…olors # Conflicts: # CHANGELOG.md # src-docs/src/routes.js
44a49b4
to
620ef83
Compare
Preview documentation changes for this PR: https://eui.elastic.co/pr_5378/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5378/ |
Docs
Added
Colors
token pageAlso moved & simplified the "Contrast checker" here and hooked up to Language toggle
Added
Color mode
specific pageFor now it just contains the the example of swapping
color mode
at lower levels. Eventually this should contain instructions on how to setup the color switcher.Changed “Global values” to “Customizing” to focus on just adjusting values
I'm still not completely happy with this page, I think it could be simpler, but I didn't want to bog down the token description pages with customization, and it also doesn't keep across pages. Maybe someday we could merge them.
Updated
Color functions
page to utilize the language switcherIn doing so, I also create a new doc tab type of
SASS
for easily passing in those snippets.Removed Sass page
All these parts were moved to either the token pages or "Customizing" page knowing that even more docs about setup and such are coming in #5121.
Move Sass vis tokens to Color palettes page
The only part that didn't really fit into tokens were the visualization token colors which have been moved to
/utilities/color-palettes#sass-variables
.Rearranged a bunch of files and converted what was possible to TSX
A lot of files were touched because I spent some time re-organizing them a bit better and converting what I could to typescript.
Components
[EuiToolTip] Force nested EuiHorizontalRule backgrounds to be more subdued (match that of the title border)
Checklist
[ ] Added or updated jest and cypress tests[ ] Checked for breaking changes and labeled appropriately[ ] Checked for accessibility including keyboard-only and screenreader modes