Skip to content
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

EuiHeader fixes #1009

Merged
merged 12 commits into from
Jul 13, 2018
Merged

EuiHeader fixes #1009

merged 12 commits into from
Jul 13, 2018

Conversation

cchaos
Copy link
Contributor

@cchaos cchaos commented Jul 12, 2018

This PR cleans up the EuiHeader responsive styles and fixes a few other bugs.

1. Bug fix: Truncated and responsive breadcrumb styles were not playing nice

If you added both truncation and responsive props to breadcrumbs, the styles didn't hide the correct children via nth-last-of-type since the of-type also depends on the dom element.

Before
screen shot 2018-07-12 at 18 01 17 pm

After
screen shot 2018-07-12 at 17 55 47 pm

2. Style fix: Visual updates to KeyPadMenu

Decreased size of text and bolded labels. Also changed the amount of shifting the icon does between states because the normal state was a bit too close to the label.

Before
screen shot 2018-07-12 at 18 05 23 pm

After
screen shot 2018-07-12 at 18 05 42 pm

3. Addition: Added a HeaderSpacesMenu to showcase that implementation

screen shot 2018-07-12 at 18 09 01 pm

Yes, the popover's triangle isn't properly colored, that'll be in a different PR

4. Refactor: Moved EuiHeaderNotification to a generic EuiNotificationBadge

screen shot 2018-07-12 at 18 45 39 pm

5. Style fix: EuiHeader responds way better to smaller screen sizes

Before
screen shot 2018-07-12 at 18 29 14 pm
screen shot 2018-07-12 at 18 28 40 pm

After
screen shot 2018-07-12 at 18 29 22 pm
screen shot 2018-07-12 at 18 28 20 pm

Also fixed the links version

Before
screen shot 2018-07-12 at 18 29 17 pm
screen shot 2018-07-12 at 18 28 43 pm

After
screen shot 2018-07-12 at 18 29 24 pm
screen shot 2018-07-12 at 18 28 28 pm

6. Bug fix: Fixed the responsive utility (show-for/hide-for) classes for IE

IE doesn't support display: initial :smh:, so it's set to inline which seems to be what initial returns anyway.


TODO:

  • Browser test

Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

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

LGTM; pulled and ran the modified components in docs

@cchaos
Copy link
Contributor Author

cchaos commented Jul 13, 2018

jenkins test this

@cchaos cchaos merged commit b84b85f into elastic:master Jul 13, 2018
@cchaos cchaos deleted the header-fixes branch July 13, 2018 16:38
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.

2 participants