Skip to content

Commit

Permalink
add some more allowed patterns to key
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeshanTamboli committed Aug 10, 2022
1 parent 95842ba commit 7cd6be5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/src/components/footer/EmailSubscribe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ export default function EmailSubscribe({ sx }: { sx?: SxProps<Theme> }) {
},

[`&.${inputBaseClasses.focused}`]: {
borderColor: (theme) =>
borderColor: (theme: Theme) =>
theme.palette.mode === 'dark'
? theme.palette.primaryDark[300]
: theme.palette.primary[500],
outline: '3px solid',
outlineColor: (theme) =>
outlineColor: (theme: Theme) =>
theme.palette.mode === 'dark'
? theme.palette.primaryDark[500]
: theme.palette.primary[200],
Expand Down
7 changes: 6 additions & 1 deletion packages/mui-system/src/styleFunctionSx/styleFunctionSx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ export interface CSSSelectorObject<Theme extends object = {}> {

type CssVariableType = string | number;

type AllowedKeys = `--${string}` | `&${string}`;
type AllowedKeys =
| `--${string}`
| `&${string}`
| `${CSS.AtRules}${string}`
| `::${string}`
| `${number}%`;

/**
* Map all nested selectors and CSS variables.
Expand Down

0 comments on commit 7cd6be5

Please sign in to comment.