Skip to content

Commit fcc7fea

Browse files
committed
chore: replace decimals with ratios in icons
1 parent 6ec45c3 commit fcc7fea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/icons/icons/twitter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { colours } from "@times-components/styleguide";
33
import Svg, { Path } from "svgs";
44
import iconPropTypes from "./proptypes";
55

6-
const ratio = 750 / 600;
6+
const ratio = 75 / 60;
77
const IconTwitter = ({ width, height, fillColour }) => (
88
<Svg
99
width={width || height * ratio}

packages/icons/icons/video.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import iconPropTypes from "./proptypes";
66
const viewBox =
77
"0.15463916957378387 0.049614034593105316 23.59917640686035 13.728596687316895";
88

9-
const ratio = 1.72;
9+
const ratio = 43 / 25;
1010
const IconVideo = ({ width, height, fillColour }) => (
1111
<Svg width={width || height * ratio} height={height} viewBox={viewBox}>
1212
<Rect

0 commit comments

Comments
 (0)