forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Material You] Use
md
as a CSS var prefix (mui#36177)
- Loading branch information
1 parent
304d7c2
commit 15b80c2
Showing
3 changed files
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { expect } from 'chai'; | ||
import { extendTheme } from '@mui/material-next/styles'; | ||
|
||
describe('Material You — extendTheme', () => { | ||
it('should have default cssVarPrefix', () => { | ||
expect(extendTheme().cssVarPrefix).to.equal('md'); | ||
}); | ||
|
||
it('`getCssVar` return default prefix', () => { | ||
expect(extendTheme().getCssVar('palette-primary-main')).to.equal( | ||
'var(--md-palette-primary-main)', | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters