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

replace useTheme with internal useGlobals #1265

Merged
merged 22 commits into from
May 17, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
remove deprecated prop
  • Loading branch information
mayank99 committed May 10, 2023
commit 9dc032a7372c291ab5aa311fe4806b49ad5ad249
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ import type {
} from '../utils/index.js';

type ThemeOptions = {
/**
* Document to which the theme will be applied.
* Can be specified to handle popup windows.
* @default document
*
* @deprecated This prop will continue to work in `useTheme` but
* we recommend rendering `ThemeProvider` in the correct document instead.
*/
ownerDocument?: Document;
/**
* Whether to apply high-contrast versions of light and dark themes.
* Will default to user preference if browser supports it.
Expand Down