Unverified Commit 902e5eb9 authored by Jiwon Choi's avatar Jiwon Choi Committed by GitHub

[dev-overlay] fix: env name label style was out of sync with error type label (#76668)

### Why?


![image](https://github.com/user-attachments/assets/de7206bb-2027-4684-8311-1b44c6e58f3a)

The env name label style was different from the error type label. It is
because during change of https://github.com/vercel/next.js/pull/76385,
the env name label was omitted.


https://github.com/vercel/next.js/blob/e3878ca38f61ab50af46d342e770344076015b55/packages/next/src/client/components/react-dev-overlay/ui/components/errors/error-type-label/error-type-label.tsx#L23-L36

Closes NDX-930
parent 6d93d652
...@@ -10,13 +10,12 @@ export const ENVIRONMENT_NAME_LABEL_STYLES = ` ...@@ -10,13 +10,12 @@ export const ENVIRONMENT_NAME_LABEL_STYLES = `
[data-nextjs-environment-name-label] { [data-nextjs-environment-name-label] {
padding: 2px 6px; padding: 2px 6px;
margin: 0; margin: 0;
/* used --size instead of --rounded because --rounded is missing 6px */
border-radius: var(--rounded-md-2); border-radius: var(--rounded-md-2);
background: var(--color-gray-300); background: var(--color-gray-100);
font-weight: 600; font-weight: 600;
font-size: var(--size-11); font-size: var(--size-12);
color: var(--color-gray-900); color: var(--color-gray-900);
font-family: var(--font-stack-monospace); font-family: var(--font-stack-monospace);
line-height: 1.25em; /* 20px in 16px font size */ line-height: var(--size-20);
} }
` `
...@@ -24,7 +24,6 @@ export const styles = ` ...@@ -24,7 +24,6 @@ export const styles = `
.nextjs__container_errors_label { .nextjs__container_errors_label {
padding: 2px 6px; padding: 2px 6px;
margin: 0; margin: 0;
/* used --size instead of --rounded because --rounded is missing 6px */
border-radius: var(--rounded-md-2); border-radius: var(--rounded-md-2);
background: var(--color-red-100); background: var(--color-red-100);
font-weight: 600; font-weight: 600;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment