Repository navigation
Updates to EuiSelectableTemplateSitewide and some other fixes for the new header - #4008
Conversation
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4008/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4008/ |
1 similar comment
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4008/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4008/ |
68c605d to
64440cc
Compare
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4008/ |
|
@chandlerprall Sorry for the last minute change, but I think allowing the consumer to provide an array of breakpoints is better than just setting a cap because then they could be adjust for larger screens as well. |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4008/ |
|
Jenkins, test this |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4008/ |
instead of relying on classes
…simply display a dot icon
Co-authored-by: Chandler Prall <[email protected]>
b697cba to
c2fc811
Compare
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4008/ |
chandlerprall
left a comment
There was a problem hiding this comment.
Apart from pending comments/conversations @myasonik made, this LGTM!
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4008/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4008/ |
Fixes #3988
Updates the text color of the search input when in the dark header to be more visible. The placeholder still shouldn't be too prominent, so it's only slightly lighter.
Fixes #3946
EuiHeaderSectionItemButton now accepts a
booleanfornotificationand when set tptruewill simply display a dot icon.Handling of a "mobile" version of EuiSelectableTemplateSitewide
New props were added to the component for providing the ability to trigger the whole component with a separate button. This prop is called
popoverButton. Which, when provided, will display this inline while putting the search component inside of the popover. It also addspopoverButtonMaxBreakpointto allow setting a certain point as to when to stop using thepopoverButton.If neither are provided, it simply continues to display as before. Here is an example of it working in the header.
EuiHeaderLink colors
Prior to this PR, they would always render as text color for inactive and blue for active, but now consumers can pass any color that is accepted by
EuiLink. This supports Kibana's use of moving the menu link to the header. The main reason for this is so that they can get the mobile version out-of-the-box.EuiSelectable fix
The EuiSelectableList accidentally had it's
showIconprop removed during #3983. This adds that back in.In the header example above, it was necessary to use the EuiHideFor and EuiShowFor components to move the display from the center items to the right side items in smaller windows. The original problem was that these components were simply hiding the elements with
display: nonebut still causing them to render which duplicate a lot of code and can cause id & ref clashes.Now that we have access to our breakpoints in JS, I've converted these components from using classes to simply rendering or not rendering their children based on the window width. This does now require
childrenand may break instances of people using custom SASS breakpoints that override EUI's defaults. This shouldn't be the case in any of Elastic products, so I feel mostly safe there.Also removes the
displayprop of EuiShowFor as we're no longer rendering a wrapping element.--
I'm going to say that this PR closes out #3490 and #3489 in preference of opening up more specific issues that arise. 🎉
But all the bits should be in there and available by EUI.
Checklist