Browse Source

fix: compatible safari layers button svg (#8020)

Co-authored-by: ysen <ysen.ge@hairobotics.com>
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
pull/8021/head
Hey 2 years ago committed by GitHub
parent
commit
7d8b7fc14d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      packages/excalidraw/components/icons.tsx
  2. 60
      packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap

8
packages/excalidraw/components/icons.tsx

@ -698,14 +698,18 @@ export const BringForwardIcon = createIcon(arrownNarrowUpJSX, tablerIconProps); @@ -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)",
},
});
//

60
packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap

@ -398,7 +398,11 @@ exports[`contextMenu element > right-clicking on a group should select whole gro @@ -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"
>
<g
@ -493,7 +497,11 @@ exports[`contextMenu element > right-clicking on a group should select whole gro @@ -493,7 +497,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"
>
<g
@ -4811,7 +4819,11 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi @@ -4811,7 +4819,11 @@ exports[`contextMenu element > 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"
>
<g
@ -4906,7 +4918,11 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi @@ -4906,7 +4918,11 @@ exports[`contextMenu element > 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"
>
<g
@ -5922,7 +5938,11 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro @@ -5922,7 +5938,11 @@ exports[`contextMenu element > 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"
>
<g
@ -6017,7 +6037,11 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro @@ -6017,7 +6037,11 @@ exports[`contextMenu element > 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"
>
<g
@ -7740,7 +7764,11 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap @@ -7740,7 +7764,11 @@ exports[`contextMenu element > 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"
>
<g
@ -7835,7 +7863,11 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap @@ -7835,7 +7863,11 @@ exports[`contextMenu element > 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"
>
<g
@ -8618,7 +8650,11 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap @@ -8618,7 +8650,11 @@ exports[`contextMenu element > 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"
>
<g
@ -8713,7 +8749,11 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap @@ -8713,7 +8749,11 @@ exports[`contextMenu element > 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"
>
<g

Loading…
Cancel
Save