diff --git a/components/system/components/CardTabGroup.js b/components/system/components/CardTabGroup.js index cd554329..aa1622ea 100644 --- a/components/system/components/CardTabGroup.js +++ b/components/system/components/CardTabGroup.js @@ -11,6 +11,7 @@ const TAB_GROUP_SIZE_MAP = { }; const STYLES_CARD_TAB_GROUP = css` + font-family: ${Constants.font.text}; width: 100%; display: flex; align-items: flex-start; diff --git a/components/system/components/CheckBox.js b/components/system/components/CheckBox.js index a9afdd18..0e8ede27 100644 --- a/components/system/components/CheckBox.js +++ b/components/system/components/CheckBox.js @@ -5,6 +5,7 @@ import * as SVG from "~/components/system/svg"; import { css } from "@emotion/react"; const STYLES_CHECKBOX = css` + font-family: ${Constants.font.text}; display: flex; align-items: flex-start; justify-content: space-between; diff --git a/components/system/components/CodeBlock.js b/components/system/components/CodeBlock.js index 201d871d..91db5bb3 100644 --- a/components/system/components/CodeBlock.js +++ b/components/system/components/CodeBlock.js @@ -4,7 +4,7 @@ import * as Constants from "~/common/constants"; import { css } from "@emotion/react"; const STYLES_CODE_BLOCK = css` - font-family: "mono"; + font-family: ${Constants.system.mono}; background-color: ${Constants.system.black}; color: ${Constants.system.white}; border-radius: 4px; diff --git a/components/system/components/Input.js b/components/system/components/Input.js index 85dbed13..29942176 100644 --- a/components/system/components/Input.js +++ b/components/system/components/Input.js @@ -1,13 +1,14 @@ -import * as React from 'react'; -import * as Constants from '~/common/constants'; -import * as SVG from '~/components/system/svg'; -import * as Strings from '~/common/strings'; +import * as React from "react"; +import * as Constants from "~/common/constants"; +import * as SVG from "~/components/system/svg"; +import * as Strings from "~/common/strings"; -import { css } from '@emotion/react'; +import { css } from "@emotion/react"; -import { DescriptionGroup } from '~/components/system/components/fragments/DescriptionGroup'; +import { DescriptionGroup } from "~/components/system/components/fragments/DescriptionGroup"; const INPUT_STYLES = ` + font-family: ${Constants.font.text}; -webkit-appearance: none; width: 100%; height: 40px; @@ -33,12 +34,14 @@ const STYLES_INPUT_CONTAINER = css` const STYLES_INPUT = css` ${INPUT_STYLES} padding: 0 24px 0 24px; - box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15), inset 0 0 0 1px ${Constants.system.darkGray}; + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15), + inset 0 0 0 1px ${Constants.system.darkGray}; :focus { outline: 0; border: 0; - box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07), inset 0 0 0 2px ${Constants.system.brand}; + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07), + inset 0 0 0 2px ${Constants.system.brand}; } ::placeholder { @@ -82,7 +85,7 @@ export class Input extends React.Component { _handleCopy = (e) => { this._input.select(); - document.execCommand('copy'); + document.execCommand("copy"); }; _handleKeyUp = (e) => { @@ -95,7 +98,10 @@ export class Input extends React.Component { }; _handleChange = (e) => { - if (!Strings.isEmpty(this.props.pattern) && !Strings.isEmpty(e.target.value)) { + if ( + !Strings.isEmpty(this.props.pattern) && + !Strings.isEmpty(e.target.value) + ) { const TestRegex = new RegExp(this.props.pattern); if (!TestRegex.test(e.target.value)) { e.preventDefault(); @@ -116,7 +122,11 @@ export class Input extends React.Component { render() { return (