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…
Reference in New Issue