-
Notifications
You must be signed in to change notification settings - Fork 842
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
[sideNavItem] no need for justify-content: space-between #2297
Conversation
@spalger The space-between is actually necessary for when there is a caret indicating children of the nav item. You can see an example via the EUI doc's side nav. We may need to actually group the icon and text together or ensure that the icon and caret never grow. |
Nice catch @cchaos I've grouped the icon and label together like you mentioned, but I'm not sure about naming. Should I even bother adding a class to the span since it's not necessary for styling? |
Now you're starting to see what we have to deal with 😜 ... This dom layout breaks the truncation. You're best best is to leave elements as they were, and instead remove the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, with a change to the CL. Thx
* [sideNavItem] no need for justify-content: space-between * add changelog entry * group the icon and label so that they don't get spaced out * remove unnecessary classname * rather than negotiating spacing, grow the label so it takes up available space * update and bump changelog entry to master
Summary
Fixed #2296 by removing
justify-content: space-between;
from sideNavItem buttons, rather than starting withspace-between
and overwriting nearly everything withjustify-content: flex-start;
.Checklist
Props have proper autodocsAdded or updated jest testsChecked for breaking changes and labeled appropriatelyChecked for accessibility including keyboard-only and screenreader modes