Merge pull request #947 from SharePoint/thechriskent-patch-1

Font Color to Background Color
This commit is contained in:
Laura Kokkarinen 2019-08-24 18:36:31 +03:00 committed by GitHub
commit 93a12845e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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>`;
}

View File

@ -11,7 +11,7 @@ export default class BasicSectionBackgroundExample extends React.Component<IBasi
const { semanticColors }: IReadonlyTheme = this.props.themeVariant;
return (
<div style={{color: semanticColors.bodyText}}>
<div style={{backgroundColor: semanticColors.bodyBackground}}>
<p>This React web part has support for section backgrounds and will inherit its background from the section</p>
</div>
);