diff --git a/packages/excalidraw/components/icons.tsx b/packages/excalidraw/components/icons.tsx index 5b19a74a49..3d7ac956fc 100644 --- a/packages/excalidraw/components/icons.tsx +++ b/packages/excalidraw/components/icons.tsx @@ -698,14 +698,18 @@ export const BringForwardIcon = createIcon(arrownNarrowUpJSX, tablerIconProps); export const SendBackwardIcon = createIcon(arrownNarrowUpJSX, { ...tablerIconProps, - transform: "rotate(180)", + style: { + transform: "rotate(180deg)", + }, }); export const BringToFrontIcon = createIcon(arrowBarToTopJSX, tablerIconProps); export const SendToBackIcon = createIcon(arrowBarToTopJSX, { ...tablerIconProps, - transform: "rotate(180)", + style: { + transform: "rotate(180deg)", + }, }); // diff --git a/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap b/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap index f032e9672f..712bf1a711 100644 --- a/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap +++ b/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap @@ -398,7 +398,11 @@ exports[`contextMenu element > right-clicking on a group should select whole gro strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} - transform="rotate(180)" + style={ + { + "transform": "rotate(180deg)", + } + } viewBox="0 0 24 24" > right-clicking on a group should select whole gro strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} - transform="rotate(180)" + style={ + { + "transform": "rotate(180deg)", + } + } viewBox="0 0 24 24" > shows 'Group selection' in context menu for multi strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} - transform="rotate(180)" + style={ + { + "transform": "rotate(180deg)", + } + } viewBox="0 0 24 24" > shows 'Group selection' in context menu for multi strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} - transform="rotate(180)" + style={ + { + "transform": "rotate(180deg)", + } + } viewBox="0 0 24 24" > shows 'Ungroup selection' in context menu for gro strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} - transform="rotate(180)" + style={ + { + "transform": "rotate(180deg)", + } + } viewBox="0 0 24 24" > shows 'Ungroup selection' in context menu for gro strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} - transform="rotate(180)" + style={ + { + "transform": "rotate(180deg)", + } + } viewBox="0 0 24 24" > shows context menu for element > [end of test] ap strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} - transform="rotate(180)" + style={ + { + "transform": "rotate(180deg)", + } + } viewBox="0 0 24 24" > shows context menu for element > [end of test] ap strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} - transform="rotate(180)" + style={ + { + "transform": "rotate(180deg)", + } + } viewBox="0 0 24 24" > shows context menu for element > [end of test] ap strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} - transform="rotate(180)" + style={ + { + "transform": "rotate(180deg)", + } + } viewBox="0 0 24 24" > shows context menu for element > [end of test] ap strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} - transform="rotate(180)" + style={ + { + "transform": "rotate(180deg)", + } + } viewBox="0 0 24 24" >