From ca979fdcd2843443a675bffd57f954543dac4e15 Mon Sep 17 00:00:00 2001 From: Corina Date: Mon, 4 Feb 2019 13:05:12 -0800 Subject: [PATCH] Import font family from defaultStyleSet --- packages/component/src/Styles/StyleSet/ErrorNotification.js | 5 ++--- .../component/src/Styles/StyleSet/WarningNotification.js | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/component/src/Styles/StyleSet/ErrorNotification.js b/packages/component/src/Styles/StyleSet/ErrorNotification.js index 1974b7f666..2fd075cb0a 100644 --- a/packages/component/src/Styles/StyleSet/ErrorNotification.js +++ b/packages/component/src/Styles/StyleSet/ErrorNotification.js @@ -1,18 +1,17 @@ -import { primarySmallFont } from '../Fonts'; - export default function ({ connectivityIconPadding, connectivityMarginLeftRight, connectivityMarginTopBottom, connectivityTextSize, failedConnectivity, + primaryFont }) { return { - ...primarySmallFont, alignItems: 'center', color: failedConnectivity, display: 'flex', + fontFamily: primaryFont, fontSize: connectivityTextSize, fontWeight: 'bold', marginBottom: connectivityMarginTopBottom, diff --git a/packages/component/src/Styles/StyleSet/WarningNotification.js b/packages/component/src/Styles/StyleSet/WarningNotification.js index 7eb0bbdae8..ccd9fc00fa 100644 --- a/packages/component/src/Styles/StyleSet/WarningNotification.js +++ b/packages/component/src/Styles/StyleSet/WarningNotification.js @@ -1,19 +1,18 @@ -import { primarySmallFont } from '../Fonts'; - export default function ({ connectivityIconPadding, connectivityMarginLeftRight, connectivityMarginTopBottom, connectivityTextSize, + primaryFont, slowConnectivity, slowConnectivityText, }) { return { - ...primarySmallFont, alignItems: 'center', color: slowConnectivityText, display: 'flex', + fontFamily: primaryFont, fontSize: connectivityTextSize, marginBottom: connectivityMarginTopBottom, marginLeft: connectivityMarginLeftRight,