Skip to content

[Docs] Updates to the layout section (part 2)#4670

Merged
cchaos merged 10 commits intoelastic:masterfrom
cchaos:docs/update/layout_section_part2
Mar 31, 2021
Merged

[Docs] Updates to the layout section (part 2)#4670
cchaos merged 10 commits intoelastic:masterfrom
cchaos:docs/update/layout_section_part2

Conversation

@cchaos
Copy link
Contributor

@cchaos cchaos commented Mar 28, 2021

This PR tackles the following component pages:

  • Header
  • Horizontal rule
  • Modal
  • Page
  • Page header
  • Spacer

There were also 2 fixes to actual components too:

  1. Fixed sizing of EuiModal if the browser window was narrower than the width and maxWidth. Basically it was forcing a max width of 100vw, so you could get it to a point where it would stretch beyond the window width. So I used the min() css function providing that if 100vw was smaller than the max-width, to use that value instead.

  2. The new EuiNotificationEvent has a slight conflict that wasn't resolved properly when EuiHeaderSectionItemButton was updated to extend EuiButtonEmpty. It was forcing a :hover and :focus state that wasn't accounting for disabled states. So I removed these specific styles to align with EuiButtonEmpty.

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 6 commits March 27, 2021 17:54
(didn’t adjust all the examples, but probably will when I tackle the EuiAppLayout component)
@cchaos cchaos requested a review from snide March 28, 2021 21:05
@kibanamachine
Copy link

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

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.

Documentation changes are 💯

@kibanamachine
Copy link

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

@cchaos
Copy link
Contributor Author

cchaos commented Mar 31, 2021

Hmm, looks like this PR is also failing on the same tests as #4662 (comment)

@kibanamachine
Copy link

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

@cchaos
Copy link
Contributor Author

cchaos commented Mar 31, 2021

Jenkins, test this

@kibanamachine
Copy link

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

@kibanamachine
Copy link

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

@cchaos cchaos merged commit 1d87e7b into elastic:master Mar 31, 2021
@cchaos cchaos deleted the docs/update/layout_section_part2 branch May 11, 2021 19:50
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