Skip to content

Commit 3e17074

Browse files
authored
[devtools] polish icon and label color (#80976)
* In devtool panel the icons should be gray-1000 Closes NEXT-4584 ![image](https://github.com/user-attachments/assets/5eba7071-706c-4c64-9ac4-f86fe8457296) * In segment explorer the page label color should be -900 Closes NEXT-4581 ![image](https://github.com/user-attachments/assets/71b78c28-08a8-4f46-94aa-f96fe364abb9) * hide side bar when there's no error ![image](https://github.com/user-attachments/assets/30eaeac8-0c9e-4347-a489-dd0672fd21df)
1 parent 08aad0c commit 3e17074

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/next/src/next-devtools/dev-overlay/components/devtools-panel/devtools-panel-tab/issues-tab/issues-tab-sidebar.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ export function IssuesTabSidebar({
1818
activeIdx: number
1919
setActiveIndex: (idx: number) => void
2020
}) {
21+
if (runtimeErrors.length === 0) {
22+
return null
23+
}
24+
2125
return (
2226
<aside data-nextjs-devtools-panel-tab-issues-sidebar>
2327
{runtimeErrors.map((runtimeError, idx) => {

packages/next/src/next-devtools/dev-overlay/components/devtools-panel/devtools-panel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ export const DEVTOOLS_PANEL_STYLES = css`
384384
align-items: center;
385385
justify-content: center;
386386
padding: 6px;
387-
color: var(--color-gray-600);
387+
color: var(--color-gray-1000);
388388
border-radius: 4px;
389389
transition: all 0.2s ease;
390390

packages/next/src/next-devtools/dev-overlay/components/overview/segment-explorer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export const DEV_TOOLS_INFO_RENDER_FILES_STYLES = css`
233233
}
234234
.segment-explorer-file-label--page {
235235
background-color: var(--color-blue-300);
236-
color: var(--color-blue-800);
236+
color: var(--color-blue-900);
237237
}
238238
.segment-explorer-file-label--not-found,
239239
.segment-explorer-file-label--forbidden,

0 commit comments

Comments
 (0)