Unverified Commit cf1b7194 authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

[devtool] move font styling to global.css (#81782)

Since we have global css reset, we can only need to reset the font style once, not everywhere

Closes NEXT-4628
parent 4a0aa9ca
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
} }
.dev-tools-indicator-menu { .dev-tools-indicator-menu {
-webkit-font-smoothing: antialiased;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
......
...@@ -92,7 +92,6 @@ export function NextLogo({ ...@@ -92,7 +92,6 @@ export function NextLogo({
} }
[data-next-badge] { [data-next-badge] {
-webkit-font-smoothing: antialiased;
width: var(--size); width: var(--size);
height: var(--size); height: var(--size);
display: flex; display: flex;
......
...@@ -91,7 +91,6 @@ export function DevToolsInfo({ ...@@ -91,7 +91,6 @@ export function DevToolsInfo({
export const DEV_TOOLS_INFO_STYLES = css` export const DEV_TOOLS_INFO_STYLES = css`
[data-info-popover] { [data-info-popover] {
-webkit-font-smoothing: antialiased;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
......
...@@ -31,7 +31,6 @@ export function ErrorOverlayDialog({ ...@@ -31,7 +31,6 @@ export function ErrorOverlayDialog({
export const DIALOG_STYLES = ` export const DIALOG_STYLES = `
.error-overlay-dialog-container { .error-overlay-dialog-container {
-webkit-font-smoothing: antialiased;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background: var(--color-background-100); background: var(--color-background-100);
......
...@@ -86,7 +86,6 @@ export function usePersistentCacheErrorDetection({ ...@@ -86,7 +86,6 @@ export function usePersistentCacheErrorDetection({
export const RESTART_SERVER_BUTTON_STYLES = ` export const RESTART_SERVER_BUTTON_STYLES = `
.restart-dev-server-button { .restart-dev-server-button {
-webkit-font-smoothing: antialiased;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
......
...@@ -52,7 +52,6 @@ export function VersionStalenessInfo({ ...@@ -52,7 +52,6 @@ export function VersionStalenessInfo({
export const styles = ` export const styles = `
.nextjs-container-build-error-version-status { .nextjs-container-build-error-version-status {
-webkit-font-smoothing: antialiased;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
......
/* devtool global css variables */ /* devtool global css variables */
:host { :host {
/* variables */
--top-z-index: 2147483647; --top-z-index: 2147483647;
} }
/* global styles */
* {
-webkit-font-smoothing: antialiased;
}
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