Skip to content

Commit 279f4fa

Browse files
authored
Merge pull request #789 from plotly/font-imports
prevent external-fonts
2 parents bc177c8 + 9352eab commit 279f4fa

File tree

10 files changed

+13
-8
lines changed

10 files changed

+13
-8
lines changed

dev/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<link rel="shortcut icon" href="/favicon.ico">
6+
<link href='https://fonts.googleapis.com/css?family=Dosis:500,700|Open+Sans:400,400i,600,700' rel='stylesheet' type='text/css'>
67
<title>Editor Dev</title>
78
</head>
89
<body>

examples/custom/public/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
66
<meta name="theme-color" content="#000000">
7+
<link href='https://fonts.googleapis.com/css?family=Dosis:500,700|Open+Sans:400,400i,600,700' rel='stylesheet' type='text/css'>
78
<!--
89
manifest.json provides metadata used when your web app is added to the
910
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/

examples/demo/public/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
66
<meta name="theme-color" content="#000000">
7+
<link href='https://fonts.googleapis.com/css?family=Dosis:500,700|Open+Sans:400,400i,600,700' rel='stylesheet' type='text/css'>
78
<!--
89
manifest.json provides metadata used when your web app is added to the
910
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/

examples/redux/public/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
66
<meta name="theme-color" content="#000000">
7+
<link href='https://fonts.googleapis.com/css?family=Dosis:500,700|Open+Sans:400,400i,600,700' rel='stylesheet' type='text/css'>
78
<!--
89
manifest.json provides metadata used when your web app is added to the
910
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/

examples/simple/public/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
66
<meta name="theme-color" content="#000000">
7+
<link href='https://fonts.googleapis.com/css?family=Dosis:500,700|Open+Sans:400,400i,600,700' rel='stylesheet' type='text/css'>
78
<!--
89
manifest.json provides metadata used when your web app is added to the
910
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,4 @@
125125
"watch": "babel src --watch --out-dir lib --source-maps | node-sass -w src/styles/main.scss lib/react-chart-editor.css",
126126
"watch-test": "jest --watch"
127127
}
128-
}
128+
}

scripts/translationKeys/combined-translation-keys.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ Relative
516516
Relative To // react-chart-editor: /default_panels/StyleImagesPanel.js:51
517517
Relative to // react-chart-editor: /default_panels/StyleShapesPanel.js:31
518518
Relative to Grid // react-chart-editor: /default_panels/StyleImagesPanel.js:33
519-
Rendering // react-chart-editor: /components/fields/TraceSelector.js:135
519+
Rendering // react-chart-editor: /components/fields/TraceSelector.js:136
520520
Reset // plotly.js: components/modebar/buttons.js:443
521521
Reset axes // plotly.js: components/modebar/buttons.js:159
522522
Reset camera to default // plotly.js: components/modebar/buttons.js:325
@@ -551,7 +551,7 @@ See a basic example.
551551
Select // react-chart-editor: /default_panels/StyleLayoutPanel.js:85
552552
Select Data Point // react-chart-editor: /default_panels/StyleLayoutPanel.js:111
553553
Select Direction // react-chart-editor: /default_panels/StyleLayoutPanel.js:94
554-
Select Trace Type // react-chart-editor: /components/widgets/TraceTypeSelector.js:234
554+
Select Trace Type // react-chart-editor: /components/widgets/TraceTypeSelector.js:220
555555
Select a Colorscale Type // react-chart-editor: /components/widgets/ColorscalePicker.js:54
556556
Select an Option // react-chart-editor: /components/widgets/Dropdown.js:66
557557
Separate Thousands // react-chart-editor: /default_panels/StyleAxesPanel.js:174

scripts/translationKeys/translation-keys.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ Relative
509509
Relative To // /default_panels/StyleImagesPanel.js:51
510510
Relative to // /default_panels/StyleShapesPanel.js:31
511511
Relative to Grid // /default_panels/StyleImagesPanel.js:33
512-
Rendering // /components/fields/TraceSelector.js:135
512+
Rendering // /components/fields/TraceSelector.js:136
513513
Resolution // /default_panels/GraphSubplotsPanel.js:209
514514
Reversed // /components/fields/MarkerColor.js:185
515515
Reversed and Grouped // /default_panels/StyleLegendPanel.js:72
@@ -538,7 +538,7 @@ See a basic example.
538538
Select // /default_panels/StyleLayoutPanel.js:85
539539
Select Data Point // /default_panels/StyleLayoutPanel.js:111
540540
Select Direction // /default_panels/StyleLayoutPanel.js:94
541-
Select Trace Type // /components/widgets/TraceTypeSelector.js:234
541+
Select Trace Type // /components/widgets/TraceTypeSelector.js:220
542542
Select a Colorscale Type // /components/widgets/ColorscalePicker.js:54
543543
Select an Option // /components/widgets/Dropdown.js:66
544544
Separate Thousands // /default_panels/StyleAxesPanel.js:174

src/__percy__/percy.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import url('https://fonts.googleapis.com/css?family=Dosis:500,700|Open+Sans:400,400i,600,700');
2+
13
.editor_controls__wrapper > div {
24
position: relative !important;
35
}

src/styles/variables/_typography.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@import url('https://fonts.googleapis.com/css?family=Dosis:500,700|Open+Sans:400,400i,600,700');
2-
31
$font-weight-light: 400;
42
$font-weight-normal: 500;
53
$font-weight-semibold: 600;
@@ -34,6 +32,6 @@ $font: (
3432
family:
3533
(
3634
body: ('Open Sans', --apple-default, sans-serif),
37-
headings: ('Dosis', sans-serif)
35+
headings: ('Dosis', 'Arial', sans-serif)
3836
)
3937
);

0 commit comments

Comments
 (0)