Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(React): Add styles to support dark themes #29410 #1205

Merged
merged 3 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/>
<meta name="theme-color" content="#000000" />
<title>IgniteUI for React</title>
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { createBrowserRouter, RouterProvider } from "react-router-dom";
import { routes } from "./app/app-routes";
import App from './app/app';
import 'react-app-polyfill/ie11';
import './index.css';

/** Required in IE11 for Charts */
Number.isNaN = Number.isNaN || function(value) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
body {
background: hsla(var(--ig-surface-500, 0 0% 100%));
color: var(--ig-surface-500-contrast, black);
font-family: var(--ig-font-family);
padding: 0;
/* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif; */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

html, body, #root {
height: 100%;
}

/* minor CSS reset */
body, h1, h2, h3, h4, h5, h6, p {
margin: 0;
}

html {
box-sizing: border-box;
}

img, video {
height: auto;
max-width: 100%;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
}
Loading