Skip to content

Commit

Permalink
fix!: #1262 default width and height on svg
Browse files Browse the repository at this point in the history
BREAKING CHANGE: default size might change if width or height is missing
  • Loading branch information
msand committed Mar 4, 2020
1 parent 0288d95 commit 1d6798b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/elements/Svg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ export default class Svg extends Shape<
static displayName = 'Svg';

static defaultProps = {
width: '100%',
height: '100%',
preserveAspectRatio: 'xMidYMid meet',
};

Expand Down

0 comments on commit 1d6798b

Please sign in to comment.