Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Set the font family globally
Browse files Browse the repository at this point in the history
  • Loading branch information
hharnisc committed Sep 7, 2016
1 parent f73aac3 commit 8b5f1c2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
6 changes: 6 additions & 0 deletions .storybook/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800" rel="stylesheet">
<style>
* {
font-family: 'Open Sans', sans-serif;
}
</style>
6 changes: 0 additions & 6 deletions src/NavBar/__snapshots__/test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ exports[`NavBar NavBar component 1`] = `
style={
Object {
"color": "#323b43",
"fontFamily": "\"Open Sans\", sans-serif",
"fontSize": 14,
"fontWeight": 600
}
Expand All @@ -55,7 +54,6 @@ exports[`NavBar NavBar component 1`] = `
style={
Object {
"color": "#323b43",
"fontFamily": "\"Open Sans\", sans-serif",
"fontSize": 14,
"fontWeight": 400
}
Expand Down Expand Up @@ -111,7 +109,6 @@ exports[`NavBar NavBar w/subtitle 1`] = `
style={
Object {
"color": "#323b43",
"fontFamily": "\"Open Sans\", sans-serif",
"fontSize": 14,
"fontWeight": 600
}
Expand All @@ -122,7 +119,6 @@ exports[`NavBar NavBar w/subtitle 1`] = `
style={
Object {
"color": "#323b43",
"fontFamily": "\"Open Sans\", sans-serif",
"fontSize": 14,
"fontWeight": 400
}
Expand Down Expand Up @@ -178,7 +174,6 @@ exports[`NavBar NavBar w/title 1`] = `
style={
Object {
"color": "#323b43",
"fontFamily": "\"Open Sans\", sans-serif",
"fontSize": 14,
"fontWeight": 600
}
Expand All @@ -189,7 +184,6 @@ exports[`NavBar NavBar w/title 1`] = `
style={
Object {
"color": "#323b43",
"fontFamily": "\"Open Sans\", sans-serif",
"fontSize": 14,
"fontWeight": 400
}
Expand Down
4 changes: 0 additions & 4 deletions src/Text/__snapshots__/test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ exports[`Text Text component 1`] = `
style={
Object {
"color": undefined,
"fontFamily": "\"Open Sans\", sans-serif",
"fontSize": 14,
"fontWeight": 400
}
Expand All @@ -17,7 +16,6 @@ exports[`Text Text w/ Color 1`] = `
style={
Object {
"color": "#329ced",
"fontFamily": "\"Open Sans\", sans-serif",
"fontSize": 14,
"fontWeight": 400
}
Expand All @@ -31,7 +29,6 @@ exports[`Text Text w/ Size 1`] = `
style={
Object {
"color": undefined,
"fontFamily": "\"Open Sans\", sans-serif",
"fontSize": 36,
"fontWeight": 400
}
Expand All @@ -45,7 +42,6 @@ exports[`Text Text w/ Weight 1`] = `
style={
Object {
"color": undefined,
"fontFamily": "\"Open Sans\", sans-serif",
"fontSize": 14,
"fontWeight": 600
}
Expand Down
1 change: 0 additions & 1 deletion src/Text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const Text = ({ children, color, size, weight }) => {
Text: {
fontSize: size,
color,
fontFamily: '"Open Sans", sans-serif',
fontWeight: weight,
},
},
Expand Down

0 comments on commit 8b5f1c2

Please sign in to comment.