mirror of
https://github.com/pnp/sp-dev-fx-webparts.git
synced 2025-02-23 13:57:18 +00:00
Font Color to Background Color
This commit is contained in:
parent
13dd132767
commit
dbe9b52c1c
@ -11,7 +11,7 @@ export default class BasicPlainSectionBackgroundExampleWebPart extends BaseClien
|
||||
// See https://github.com/OfficeDev/office-ui-fabric-react/wiki/Theming
|
||||
const semanticColors: Readonly<ISemanticColors> | undefined = this._themeVariant && this._themeVariant.semanticColors;
|
||||
|
||||
const style: string = ` style="color:${semanticColors.bodyText}"`;
|
||||
const style: string = ` style="background-color:${semanticColors.bodyBackground}"`;
|
||||
this.domElement.innerHTML = `<p${'' || (this._themeProvider && style)}>${this._textContent}</p>`;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user