-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Discover] Fix dark theme issues by removing deprecated components #163387
Conversation
… 163332-discover-dark-theme
… 163332-discover-dark-theme
…k-theme # Conflicts: # src/plugins/discover/tsconfig.json
Hi @clintandrewhall and @cee-chen, Could you please check if this PR correctly addresses the bug with theme/styles #163332 ? |
text: toMountPoint(<MarkdownSimple>{error.message}</MarkdownSimple>, { | ||
theme: core.theme, | ||
i18n: core.i18n, | ||
}), |
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.
@clintandrewhall Do we still need to wrap toast's text with toMountPoint
?
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
Sorry to duck out of this, but I'm not actually super familiar with the dark mode effort in Kibana or the issues causing apps not to fully respect dark mode. I'll let @clintandrewhall or possibly @kc13greiner review this one, as I believe they're both way more familiar with the project than I am 🙏 |
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.
limits.yml
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.
Pulled and tested locally and Discover is now dark while in dark mode! I left a couple comments related to the toMountPoint
question, but everything worked well in testing. LGTM, thanks 👍
theme$ | ||
) | ||
), | ||
text: i18n.translate('discover.context.invalidTieBreakerFiledSetting', { |
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.
Looks like we dropped the toMountPoint
here. I'm fine with dropping any/all of them if they're not needed, just wanted to make a note to follow up based on the response to this comment.
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.
@davismcphee toMountPoint
is not necessary for a string value.
@@ -22,7 +21,7 @@ export const displayPossibleDocsDiffInfoAlert = (toastNotifications: ToastsStart | |||
|
|||
toastNotifications.addInfo({ | |||
title: infoTitle, | |||
text: toMountPoint(<MarkdownSimple>{infoDescription}</MarkdownSimple>), | |||
text: infoDescription, |
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.
toMountPoint
removed.
{new Error(`Data view failure of the alert rule with id ${alertId}.`).message} | ||
</MarkdownSimple> | ||
), | ||
text: errorText, |
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.
toMountPoint
removed.
…k-theme # Conflicts: # src/plugins/discover/public/application/context/hooks/use_context_app_fetch.tsx
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsReferences to deprecated APIs
History
To update your PR or re-run it, just comment with: cc @jughosta |
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.
Tested locally with Safari 👍
Summary
This PR fixes dark mode issues which surfaced after #161914 and #163103