Skip to content

Commit 19cbd65

Browse files
fix(Tile): do not default to SVGImage to true otherwise it doesn't work with standard svg (#327)
* fix(Tile): do not default to SVGImage to true otherwise it doesn't work with standard svg * Apply suggestions from code review Co-authored-by: Joseph Garrone <[email protected]> Signed-off-by: Caroline <[email protected]> --------- Signed-off-by: Caroline <[email protected]> Co-authored-by: Joseph Garrone <[email protected]>
1 parent df2b768 commit 19cbd65

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Tile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export const Tile = memo(
9191
imageAlt,
9292
imageWidth,
9393
imageHeight,
94-
imageSvg = true,
94+
imageSvg = false,
9595
orientation = "vertical",
9696
small = false,
9797
noBorder = false,

stories/Tile.stories.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@ const { meta, getStory } = getStoryFactory({
111111
}
112112
},
113113
"imageSvg": {
114-
"description": "Set to true if the image is a SVG.",
115-
"defaultValue": true,
114+
"description":
115+
"Set to true if the image is type of SVG [Pictogramme DSFR](https://www.systeme-de-design.gouv.fr/fondamentaux/pictogramme/) compliant.",
116+
"defaultValue": false,
116117
"control": {
117118
"type": "boolean"
118119
},

0 commit comments

Comments
 (0)