Repository navigation
[EuiLink] Amsterdam style boost and docs cleanup - #4979
Conversation
- Increased text underline weight on focus - Removed low-contrast focus background - Added `:visited` and `:target` styling (All mainly affecting Amsterdam)
| <EuiFlexGroup wrap responsive={false} gutterSize="xs"> | ||
| <EuiFlexItem grow={false}> | ||
| <EuiBadge color="#BADA55" href="/#/display/badge"> | ||
| <EuiBadge color="#BADA55" href="#/display/badge"> |
There was a problem hiding this comment.
Some docs changes was me fixing these urls
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4979/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4979/ |
elizabetdev
left a comment
There was a problem hiding this comment.
Tested in Chrome, Safari, Edge, and Firefox. I also looked at the code.
LGTM! 🎉
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4979/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4979/ |
* [EuiLink] Increased font weight to match buttons - Increased text underline weight on focus - Removed low-contrast focus background - Added `:visited` and `:target` styling (All mainly affecting Amsterdam) * Re-use mixin in text styles
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4979/ |
Style updates
I can't find the exact conversation, but there was someone from Cloud who suggested we at least increase the weight of our links so they're more detectable within paragraphs of text (other than color).
Since Amsterdam increased the font-weight of buttons to medium, we never did so to EuiLink. This PR adjusts that as well as some more of the focus states like increasing the thickness of the underline when normal
:focusbut the fulloutlinewhen:focus-visible. The thicker underline is also shown when it is:target.Before/After for Amsterdam
Before/After default theme
This remains mostly untouched, but does fix the ghost focus state.
Checklist
[ ] Checked in mobile[ ] Props have proper autodocs and playground toggles[ ] Added or updated jest tests[ ] Checked for breaking changes and labeled appropriately