Merged
Conversation
snide
approved these changes
Dec 5, 2018
Contributor
Author
|
Awesome, thank you for testing in IE @snide!! |
cchaos
commented
Dec 5, 2018
Contributor
|
I thought about that. It's not technically, because it's just a pattern. I
think it's ok as long as we immediately make the change on upgrade. Cloud
doesn't use breadcrumbs so I think we are ok. Some communication should be
enough.
…On Wed, Dec 5, 2018, 6:55 AM Caroline Horn ***@***.*** wrote:
***@***.**** commented on this pull request.
------------------------------
In src-docs/src/views/header/header.js
<#1346 (comment)>:
> </EuiHeaderSection>
+ {this.renderBreadcrumbs()}
Would this be considered a breaking a change? That the breadcrumbs need to
shift it's location within the EuiHeader dom, though it's just a pattern
and not a component?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1346 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AATzp_hl632xWF6hN06J_XV_Nw9s2wDsks5u195NgaJpZM4ZBvg9>
.
|
Contributor
Author
|
Sounds good! Thanks! |
spalger
approved these changes
Dec 6, 2018
Contributor
Author
|
@spalger, Sorry I wasn't too clear on the changes that need to be made in the Then it will behave like so: erg, something's broke with github's embedded img's, here's the link: https://d.pr/free/i/zplxwe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Before this PR, applying truncation to
EuiBreadcrumbswould max-width every breadcrumb to160px. This caused some issues with the last item being unnecessarily truncated.In this PR, I've altered the way
EuiBreadcrumbshandle thetruncateprop as well as added the ability to addtruncateto individual breadcrumbs.The new behavior is this:
truncateto an individual breadcrumb (in thebreadcrumbsobject prop) will singly max-width that breadcrumb at160px. This allows for more granular handling of the truncation ability.truncateto the wholeEuiBreadcrumbscomponent, will contain the whole thing to a single line of text and max-width every breadcrumb at160pxexcept for the last item. This last item will still truncate if it meets the right side of the container.EuiHeader
In order for these to truncate properly, the breadcrumb container had to be a direct child of the
EuiHeader. This means, that the breadcrumbs need to be pulled out of aEuiHeaderSection. This meant I had to alter/add some of the props for those items as well.Example of it working
https://d.pr/free/v/6Ge7ZD
Checklist
[ ] This was checked against keyboard-only and screenreader scenarios[ ] This required updates to Framer X components