Skip to content

Commit 91da476

Browse files
mattkimekibanamachine
authored andcommitted
[dev tools] Theme var - update usage for borealis (elastic#204636)
## Summary Short and simple EUI theme update. Only affects the padding to the left of the `Console` text. Its unchanged. <img width="307" alt="Screenshot 2024-12-17 at 12 15 00 PM" src="https://github.com/user-attachments/assets/e3b4128f-4179-4c51-88a3-3ac9f2b95654" /> --------- Co-authored-by: kibanamachine <[email protected]>
1 parent d4231ed commit 91da476

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/platform/plugins/shared/dev_tools/public/application.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ import React, { useEffect, useRef } from 'react';
1111
import ReactDOM from 'react-dom';
1212
import { Redirect, RouteComponentProps } from 'react-router-dom';
1313
import { HashRouter as Router, Routes, Route } from '@kbn/shared-ux-router';
14-
import { EuiTab, EuiTabs, EuiToolTip, EuiBetaBadge } from '@elastic/eui';
14+
import { EuiTab, EuiTabs, EuiToolTip, EuiBetaBadge, useEuiTheme } from '@elastic/eui';
1515
import { i18n } from '@kbn/i18n';
16-
import { euiThemeVars } from '@kbn/ui-theme';
1716

1817
import type {
1918
ApplicationStart,
@@ -56,6 +55,7 @@ function DevToolsWrapper({
5655
location,
5756
startServices,
5857
}: DevToolsWrapperProps) {
58+
const { euiTheme } = useEuiTheme();
5959
const { docTitleService, breadcrumbService } = appServices;
6060
const mountedTool = useRef<MountedDevToolDescriptor | null>(null);
6161

@@ -75,7 +75,7 @@ function DevToolsWrapper({
7575

7676
return (
7777
<main className="devApp">
78-
<EuiTabs css={{ paddingLeft: euiThemeVars.euiSizeS }} size="l">
78+
<EuiTabs css={{ paddingLeft: euiTheme.size.s }} size="l">
7979
{devTools.map((currentDevTool) => (
8080
<EuiTab
8181
key={currentDevTool.id}

src/platform/plugins/shared/dev_tools/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"@kbn/url-forwarding-plugin",
1010
"@kbn/management-plugin",
1111
"@kbn/i18n",
12-
"@kbn/ui-theme",
1312
"@kbn/shared-ux-router",
1413
"@kbn/deeplinks-devtools",
1514
"@kbn/config-schema",

0 commit comments

Comments
 (0)