Skip to content

Conversation

@snide
Copy link
Contributor

@snide snide commented Aug 16, 2020

Summary

Minor change to the sidenav coloring to make it more consistant for navs in their various open / close states. The current setup over-assumes that you'll be using open states as a location reference. This might be something we want to change based on a prop, but in general I think this way is a more consistent default.

Before

image

After

image

Why this is important

When working with trees where you force them open to show heigharchy, you'd wonder why the coloring was highlighted differently.

image

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
  • 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

@snide snide requested a review from cchaos August 16, 2020 19:29
@kibanamachine
Copy link

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

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

I think this makes a lot of sense. The one thing that still gets me about this component is that I feel like the coloring is backwards. Our typical links use the primary blue colors, but in the side-nav we're indicating current selection in blue instead of all the other links being blue. But I know that it would then probably be a bit overwhelmingly blue.

Probably something we could discuss at a higher scope and don't need to address in this PR.

Thoughts though on maybe bolding the current selection even more? Right now it just goes from 400-500. I think we could take it all the way to 700.

Screen Shot 2020-08-17 at 16 19 58 PM

Comment on lines 154 to 155

}}
Copy link
Contributor

Choose a reason for hiding this comment

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

What happened here? 😆

@snide
Copy link
Contributor Author

snide commented Aug 17, 2020

Good catch. Feedback addressed. Agree with you on the bold. Also think the blue would be too much and that as long as sidenav is used in a common nav place (sidebars) it works with its darker coloring.

@kibanamachine
Copy link

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

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Yeah, I guess I was just wondering if the selected one should be blue at all. But again, not pushing to figure that out in this PR.

I did have some suggestions here though to actually use our text-specific color vars instead of the shade color.

@snide
Copy link
Contributor Author

snide commented Aug 18, 2020

@cchaos Feedback addressed

@kibanamachine
Copy link

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

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Sorry just caught one more thing. Should we move the coloring of the label to the outer element instead so that the icons can inherit that color?

Screen Shot 2020-08-18 at 13 17 54 PM

@kibanamachine
Copy link

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

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

👍 LGTM!

@kibanamachine
Copy link

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

ashikmeerankutty and others added 4 commits August 19, 2020 20:17
* Add all exported types

* Add some common interfaces

* Add extends to interfaces

* Remove comment

* Fixed issue when extendedInterfaces is empty

* Use sass variables and remove font weight

* Include HTMLElement in Props tab if not superseded by another element

* Fixed missing key issue

* Fix display of extends (including mobile)

Co-authored-by: Chandler Prall <[email protected]>
Co-authored-by: cchaos <[email protected]>
* Add vertical scroll and text highlighting for functions

* use code block instead of markdown

* Swap usages of code for code block and fix overflow

* One codeblock with line breaks when multiple functions

* Fixed warnings of missing keys

Co-authored-by: cchaos <[email protected]>
* Add new ML icons.  Prettier updates on app search icons.

* Update alignment in all ML icons

* Update app search and workplace search icons

* Update changelog

* Fix changelog entry

* Fix changelog entry
@snide
Copy link
Contributor Author

snide commented Aug 20, 2020

Bungled git on this one somehow. Closing in favor of #3945

@snide snide closed this Aug 20, 2020
@kibanamachine
Copy link

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

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.

5 participants