Skip to content

Commit

Permalink
chore: replace decimals with ratios in icons
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhedonia committed Mar 7, 2018
1 parent 6ec45c3 commit fcc7fea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/icons/icons/twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colours } from "@times-components/styleguide";
import Svg, { Path } from "svgs";
import iconPropTypes from "./proptypes";

const ratio = 750 / 600;
const ratio = 75 / 60;
const IconTwitter = ({ width, height, fillColour }) => (
<Svg
width={width || height * ratio}
Expand Down
2 changes: 1 addition & 1 deletion packages/icons/icons/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import iconPropTypes from "./proptypes";
const viewBox =
"0.15463916957378387 0.049614034593105316 23.59917640686035 13.728596687316895";

const ratio = 1.72;
const ratio = 43 / 25;
const IconVideo = ({ width, height, fillColour }) => (
<Svg width={width || height * ratio} height={height} viewBox={viewBox}>
<Rect
Expand Down

0 comments on commit fcc7fea

Please sign in to comment.