-
Notifications
You must be signed in to change notification settings - Fork 839
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
When wrapped in EuiText, title size in EuiCollapsibleNavGroup is ignored #6663
Comments
This design was intentional as we had planned to use (and in some cases may still) use a large black button atop the light nav group. That said, we won't be using this Instead, we likely to need to have Others, correct me if I'm wrong after my very quick pass. |
Presuming the prescribed path forward is to convert the nav components to Emotion, this issue can likely be closed in favor of these related issues: Emotion conversions
Kibana POCFor reference, here is the related issue in Kibana |
#6353 would incidentally solve this issue, since we wouldn't need to wrap children in |
I took some time today to investigate this. A couple things:
This not actually the case. EUI's docs are working correctly. The dark mode The problemTo tweak the production example to display the issue, I've modified the CodeSandbox demo with a wrapping The cause of the unexpected title sizing is that The fastest "solution"/workaroundThe fastest workaround to this would be to simply not use the default <EuiCollapsibleNavGroup titleElement="span" /> Example of the above CodeSandbox with The actual/better solutionThe better solution here would be to address why a wrapping Additionally, it's unclear to me why |
👋 This issue hasn't seen activity in 3 days, so we're automatically closing this issue as answered. Please leave a comment if that's not the case, or if you have any remaining questions or issues. |
I'm seeing a strange issue when trying to use EuiCollapsibleNavGroup on a dark background.
This issue is reflected in the EUI Framework docs:
https://elastic.github.io/eui/#/navigation/collapsible-nav#collapsible-nav-group
It seems like in the example above, the title size of the last nav group should be relatively small since the
titleSize
attribute iss
, but it is actually the largest title in the example.In my example, I have markup that looks like:
The result is a nav group with a very large title:
Using any value of
titleSize
in theEuiCollapsibleNavGroup
props does not seem to have any effect.The text was updated successfully, but these errors were encountered: