Skip to content

Commit

Permalink
Merge branch 'master' into about-page-updates
Browse files Browse the repository at this point in the history
Signed-off-by: Danilo Leal <[email protected]>
  • Loading branch information
danilo-leal authored Sep 17, 2023
2 parents c5f5586 + 806f84c commit bc03f43
Show file tree
Hide file tree
Showing 36 changed files with 232 additions and 532 deletions.
2 changes: 1 addition & 1 deletion docs/data/base/components/number-input/number-input.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ The following code snippet:
## Hook

```js
import useNumberInput from '@mui/base/unstable_useNumberInput';
import { unstable_useNumberInput as useNumberInput } from '@mui/base/unstable_useNumberInput';
```

The `useNumberInput` hook lets you apply the functionality of a Number Input to a fully custom component.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ export default function BaseButtonPlainCss() {
<style type="text/css">{css}</style>
<Stack spacing={2} direction="row" className="demo">
<Button className="github-button">Create Repository</Button>

<button type="button" {...getRootProps()} className="github-button">
Create Repository
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ export default function BaseButtonPlainCss() {
<style type="text/css">{css}</style>
<Stack spacing={2} direction="row" className="demo">
<Button className="github-button">Create Repository</Button>

<button type="button" {...getRootProps()} className="github-button">
Create Repository
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<style type="text/css">{css}</style>
<Stack spacing={2} direction="row" className="demo">
<Button className="github-button">Create Repository</Button>

<button type="button" {...getRootProps()} className="github-button">
Create Repository
</button>
Expand Down
106 changes: 0 additions & 106 deletions docs/data/joy/customization/dark-mode/dark-mode-pt.md

This file was deleted.

106 changes: 0 additions & 106 deletions docs/data/joy/customization/dark-mode/dark-mode-zh.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/data/joy/customization/dark-mode/dark-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ import { getInitColorSchemeScript } from '@mui/joy/styles';
export default class MyDocument extends Document {
render() {
return (
<Html>
<Html data-color-scheme="light">
<Head>...</Head>
<body>
{getInitColorSchemeScript()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { getInitColorSchemeScript } from '@mui/joy/styles';
export default class MyDocument extends Document {
render() {
return (
<Html>
<Html data-color-scheme="light">
<Head>...</Head>
<body>
{getInitColorSchemeScript()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ import { getInitColorSchemeScript } from '@mui/material/styles';
export default class MyDocument extends Document {
render() {
return (
<Html>
<Html data-color-scheme="light">
<Head>...</Head>
<body>
{getInitColorSchemeScript()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ import { getInitColorSchemeScript } from '@mui/material/styles';
export default class MyDocument extends Document {
render() {
return (
<Html>
<Html data-color-scheme="light">
<Head>...</Head>
<body>
{getInitColorSchemeScript()}
Expand Down
9 changes: 8 additions & 1 deletion docs/pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class MyDocument extends Document {
const { canonicalAsServer, userLanguage } = this.props;

return (
<Html lang={userLanguage}>
<Html lang={userLanguage} data-mui-color-scheme="light" data-joy-color-scheme="light">
<Head>
{/*
manifest.json provides metadata used when your web app is added to the
Expand Down Expand Up @@ -146,6 +146,13 @@ export default class MyDocument extends Document {
'.mode-dark .only-dark-mode': {
display: 'block',
},
// TODO migrate to .only-dark-mode to .only-dark-mode-v2
'[data-mui-color-scheme="light"] .only-dark-mode-v2': {
display: 'none',
},
'[data-mui-color-scheme="dark"] .only-light-mode-v2': {
display: 'none',
},
'.plan-pro, .plan-premium': {
display: 'inline-block',
height: '1em',
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/first-look-at-joy.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ import { getInitColorSchemeScript } from '@mui/joy/styles';
export default class MyDocument extends Document {
render() {
return (
<Html>
<Html data-color-scheme="light">
<Head>...</Head>
<body>
{getInitColorSchemeScript()}
Expand Down
9 changes: 3 additions & 6 deletions docs/pages/careers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -330,12 +330,9 @@ function CareersContent() {
],
['Time off:', 'We provide 33 days of paid time off globally.'],
].map((textArray) => (
<Box
key={textArray[0]}
sx={{ display: 'flex', alignItems: 'center', mt: 1.5, gap: 1 }}
>
<IconImage name="yes" />
<Typography variant="body2" color="text.primary">
<Box key={textArray[0]} sx={{ display: 'flex', alignItems: 'center', mt: 1 }}>
<IconImage name="pricing/yes" />
<Typography variant="body2" color="text.primary" sx={{ ml: 1 }}>
<span style={{ fontWeight: 600 }}>{`${textArray[0]} `}</span>
{textArray[1]}
</Typography>
Expand Down
7 changes: 0 additions & 7 deletions docs/public/static/branding/companies/nasa-light.svg

This file was deleted.

11 changes: 0 additions & 11 deletions docs/public/static/branding/companies/netflix-light.svg

This file was deleted.

Loading

0 comments on commit bc03f43

Please sign in to comment.