-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update theme instances to contain components (scopedSettings) (#15482)
* update theme instances to support being passed to ThemeProvider * Change files * update mds * fix nit
- Loading branch information
Showing
20 changed files
with
300 additions
and
274 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
change/@uifabric-azure-themes-2020-10-12-13-37-09-xgao-theme-packages.json
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,8 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Update Theme instances to contain components/scopedSettings.", | ||
"packageName": "@uifabric/azure-themes", | ||
"email": "xgao@microsoft.com", | ||
"dependentChangeType": "patch", | ||
"date": "2020-10-12T20:37:00.499Z" | ||
} |
8 changes: 8 additions & 0 deletions
8
change/@uifabric-mdl2-theme-2020-10-12-13-37-09-xgao-theme-packages.json
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,8 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Update Theme instances to contain components/scopedSettings", | ||
"packageName": "@uifabric/mdl2-theme", | ||
"email": "xgao@microsoft.com", | ||
"dependentChangeType": "patch", | ||
"date": "2020-10-12T20:37:07.538Z" | ||
} |
8 changes: 8 additions & 0 deletions
8
change/@uifabric-theme-samples-2020-10-12-13-37-09-xgao-theme-packages.json
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,8 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Update Theme instances to contain components/scopedSettings", | ||
"packageName": "@uifabric/theme-samples", | ||
"email": "xgao@microsoft.com", | ||
"dependentChangeType": "patch", | ||
"date": "2020-10-12T20:37:09.681Z" | ||
} |
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
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
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
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
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import { MDL2Theme } from './mdl2/MDL2Theme'; | ||
import { MDL2Styles } from './mdl2/MDL2Styles'; | ||
import { ICustomizations } from 'office-ui-fabric-react'; | ||
import { addVariants } from '@uifabric/variants'; | ||
|
||
const { components: scopedSettings, ...theme } = MDL2Theme; | ||
|
||
export const MDL2Customizations: ICustomizations = { | ||
settings: { | ||
theme: { ...MDL2Theme }, | ||
theme, | ||
}, | ||
scopedSettings: { ...MDL2Styles }, | ||
scopedSettings: { ...scopedSettings }, | ||
}; | ||
|
||
addVariants(MDL2Customizations.settings.theme); |
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
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
Oops, something went wrong.