Skip to content

Commit

Permalink
Remove unneccessary font declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
domyen committed Feb 8, 2019
1 parent 9a83d2b commit c7f624e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 15 deletions.
2 changes: 0 additions & 2 deletions addons/info/src/components/Story.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { isForwardRef } from 'react-is';
import { polyfill } from 'react-lifecycles-compat';
import PropTypes from 'prop-types';
import global from 'global';
import { baseFonts } from '@storybook/theming/dist/base';

import marksy from 'marksy';
import Node from './Node';
Expand Down Expand Up @@ -51,7 +50,6 @@ const stylesheetBase = {
zIndex: 0,
},
infoBody: {
...baseFonts,
fontWeight: 300,
lineHeight: 1.45,
fontSize: '15px',
Expand Down
7 changes: 0 additions & 7 deletions addons/info/src/components/markdown/htags.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
import { baseFonts } from '@storybook/theming/dist/base';

const defaultProps = {
children: null,
Expand All @@ -13,7 +12,6 @@ const propTypes = {

export function H1({ id, children }) {
const styles = {
...baseFonts,
borderBottom: '1px solid #eee',
fontWeight: 600,
margin: 0,
Expand All @@ -32,7 +30,6 @@ H1.propTypes = propTypes;

export function H2({ id, children }) {
const styles = {
...baseFonts,
fontWeight: 600,
margin: 0,
padding: 0,
Expand All @@ -50,7 +47,6 @@ H2.propTypes = propTypes;

export function H3({ id, children }) {
const styles = {
...baseFonts,
fontWeight: 600,
margin: 0,
padding: 0,
Expand All @@ -69,7 +65,6 @@ H3.propTypes = propTypes;

export function H4({ id, children }) {
const styles = {
...baseFonts,
fontWeight: 600,
margin: 0,
padding: 0,
Expand All @@ -87,7 +82,6 @@ H4.propTypes = propTypes;

export function H5({ id, children }) {
const styles = {
...baseFonts,
fontWeight: 600,
margin: 0,
padding: 0,
Expand All @@ -105,7 +99,6 @@ H5.propTypes = propTypes;

export function H6({ id, children }) {
const styles = {
...baseFonts,
fontWeight: 400,
margin: 0,
padding: 0,
Expand Down
4 changes: 0 additions & 4 deletions addons/info/src/components/markdown/text.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
import { baseFonts } from '@storybook/theming/dist/base';

const defaultProps = { children: null };
const propTypes = { children: PropTypes.node };

export function P({ children }) {
const style = {
...baseFonts,
fontSize: '15px',
};

Expand All @@ -23,7 +21,6 @@ P.propTypes = propTypes;

export function LI({ children }) {
const style = {
...baseFonts,
fontSize: '15px',
};
return <li style={style}>{children}</li>;
Expand All @@ -34,7 +31,6 @@ LI.propTypes = propTypes;

export function UL({ children }) {
const style = {
...baseFonts,
fontSize: '15px',
};
return <ul style={style}>{children}</ul>;
Expand Down
3 changes: 1 addition & 2 deletions addons/jest/src/components/Result.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import React from 'react';
import PropTypes from 'prop-types';

import { styled, monoFonts } from '@storybook/theming';
import { styled } from '@storybook/theming';

import Indicator from './Indicator';
import colors from '../colors';

const Pre = styled.pre({
margin: 0,
...monoFonts,
});

const FlexContainer = styled.div({
Expand Down

0 comments on commit c7f624e

Please sign in to comment.