From e955d5bfa7ffbb2de3975ac30d00455b2a6014d8 Mon Sep 17 00:00:00 2001 From: nreese Date: Thu, 17 Nov 2022 12:05:14 -0700 Subject: [PATCH] [controls] fix Time Slider text is not working properly with Dark Mode --- .../embeddable/time_slider_embeddable.tsx | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/plugins/controls/public/time_slider/embeddable/time_slider_embeddable.tsx b/src/plugins/controls/public/time_slider/embeddable/time_slider_embeddable.tsx index 8122bbfda7813..ffb7bd2610fc5 100644 --- a/src/plugins/controls/public/time_slider/embeddable/time_slider_embeddable.tsx +++ b/src/plugins/controls/public/time_slider/embeddable/time_slider_embeddable.tsx @@ -12,6 +12,7 @@ import moment from 'moment-timezone'; import { Embeddable, IContainer } from '@kbn/embeddable-plugin/public'; import { ReduxEmbeddableTools, ReduxEmbeddablePackage } from '@kbn/presentation-util-plugin/public'; import type { TimeRange } from '@kbn/es-query'; +import { KibanaThemeProvider } from '@kbn/kibana-react-plugin/public'; import React from 'react'; import ReactDOM from 'react-dom'; import { Subscription } from 'rxjs'; @@ -270,16 +271,18 @@ export class TimeSliderControlEmbeddable extends Embeddable< const { Wrapper: TimeSliderControlReduxWrapper } = this.reduxEmbeddableTools; ReactDOM.render( - - { - this.onTimesliceChange(value); - const range = value ? value[TO_INDEX] - value[FROM_INDEX] : undefined; - this.onRangeChange(range); - }} - /> - , + + + { + this.onTimesliceChange(value); + const range = value ? value[TO_INDEX] - value[FROM_INDEX] : undefined; + this.onRangeChange(range); + }} + /> + + , node ); };