Skip to content

Commit d3631ed

Browse files
authored
feat: tile svg artwork class override (#386)
1 parent e0b8234 commit d3631ed

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/Tile.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ export type TileProps = {
2323
start?: ReactNode;
2424
imageUrl?: string;
2525
imageAlt?: string;
26+
/**
27+
* @deprecated imageWidth has no effect
28+
*/
2629
imageWidth?: string | number;
30+
/**
31+
* @deprecated imageHeight has no effect
32+
*/
2733
imageHeight?: string | number;
2834
imageSvg?: boolean;
2935
grey?: boolean;
@@ -42,7 +48,8 @@ export type TileProps = {
4248
| "detail"
4349
| "start"
4450
| "img"
45-
| "imgTag",
51+
| "imgTag"
52+
| "artwork",
4653
string
4754
>
4855
>;
@@ -186,7 +193,7 @@ export const Tile = memo(
186193
<div className={cx(fr.cx("fr-tile__pictogram"), classes.img)}>
187194
<svg
188195
aria-hidden={true}
189-
className={fr.cx("fr-artwork")}
196+
className={cx(fr.cx("fr-artwork"), classes.artwork)}
190197
viewBox="0 0 80 80"
191198
width="80px"
192199
height="80px"

0 commit comments

Comments
 (0)