Skip to content

Commit 20b800a

Browse files
committed
use style tag
1 parent f8a6b73 commit 20b800a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1+
import { css } from '../../utils/css'
2+
13
export function DevToolsPanel() {
24
// TODO: Remove style; It is to indicate faster in the browser.
3-
return <div className="text-black">DevToolsPanel</div>
5+
return <div data-nextjs-devtools-panel>DevToolsPanel</div>
46
}
7+
8+
export const DEVTOOLS_PANEL_STYLES = css`
9+
[data-nextjs-devtools-panel] {
10+
color: black;
11+
}
12+
`

packages/next/src/next-devtools/dev-overlay/styles/component-styles.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import { DEV_TOOLS_INFO_RENDER_FILES_STYLES } from '../components/overview/segme
2525
import { FADER_STYLES } from '../components/fader'
2626
import { RESTART_SERVER_BUTTON_STYLES } from '../components/errors/error-overlay-toolbar/restart-server-button'
2727
import { NEXT_LOGO_STYLES } from '../components/devtools-indicator/next-logo'
28+
import { DEVTOOLS_PANEL_STYLES } from '../components/devtools-panel/devtools-panel'
2829

2930
export function ComponentStyles() {
3031
return (
@@ -56,6 +57,7 @@ export function ComponentStyles() {
5657
${DEV_TOOLS_INFO_RENDER_FILES_STYLES}
5758
${FADER_STYLES}
5859
${NEXT_LOGO_STYLES}
60+
${DEVTOOLS_PANEL_STYLES}
5961
`}
6062
</style>
6163
)

0 commit comments

Comments
 (0)