Просмотр исходного кода

Merge pull request #30195 from overleaf/mj-svg-path-id-clash

[web] Resolve id clash for svg paths

GitOrigin-RevId: 911d44a4b1549d8de0cae39658f05660e75c180f
Malik Glossop 8 месяцев назад
Родитель
Сommit
96141d7abe
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      services/web/frontend/js/shared/svgs/git-logo-orange.tsx

+ 2 - 2
services/web/frontend/js/shared/svgs/git-logo-orange.tsx

@@ -7,11 +7,11 @@ function GitLogoOrange({ size = 40 }: { size?: number }) {
       viewBox="0 0 92 92"
     >
       <defs>
-        <clipPath id="a">
+        <clipPath id="git-logo-path">
           <path d="M0 .113h91.887V92H0Zm0 0" />
         </clipPath>
       </defs>
-      <g clipPath="url(#a)">
+      <g clipPath="url(#git-logo-path)">
         <path
           style={{
             stroke: 'none',