Skip to content

[EuiLink] Amsterdam style boost and docs cleanup#4979

Merged
cchaos merged 8 commits intoelastic:masterfrom
cchaos:docs/links
Jul 27, 2021
Merged

[EuiLink] Amsterdam style boost and docs cleanup#4979
cchaos merged 8 commits intoelastic:masterfrom
cchaos:docs/links

Conversation

@cchaos
Copy link
Copy Markdown
Contributor

@cchaos cchaos commented Jul 26, 2021

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 :focus but the full outline when :focus-visible. The thicker underline is also shown when it is :target.

Before/After for Amsterdam

Screen Recording 2021-07-26 at 06 14 03 PM
Screen Recording 2021-07-26 at 06 13 08 PM

Before/After default theme

This remains mostly untouched, but does fix the ghost focus state.

Screen Recording 2021-07-26 at 06 16 27 PM
Screen Recording 2021-07-26 at 06 38 29 PM

Checklist

  • Check against all themes for compatibility in both light and dark modes
  • [ ] Checked in mobile
  • Checked in Chrome, Safari, Edge, and Firefox
  • [ ] Props have proper autodocs and playground toggles
  • Added documentation
  • Checked Code Sandbox works for the any docs examples
  • [ ] Added or updated jest tests
  • [ ] Checked for breaking changes and labeled appropriately
  • Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

cchaos added 5 commits July 26, 2021 16:50
- 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">
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some docs changes was me fixing these urls

@cchaos cchaos requested a review from elizabetdev July 26, 2021 22:48
@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_4979/

@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_4979/

Copy link
Copy Markdown
Contributor

@elizabetdev elizabetdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested in Chrome, Safari, Edge, and Firefox. I also looked at the code.

LGTM! 🎉

@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_4979/

@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_4979/

@cchaos cchaos merged commit 653f62e into elastic:master Jul 27, 2021
@cchaos cchaos deleted the docs/links branch July 27, 2021 22:18
cchaos added a commit to myasonik/eui that referenced this pull request Jul 27, 2021
* [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
@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_4979/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants