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

Merge pull request #106 from smiclea/fix-safari-loading-svg

Fix SVG small loading animation on Safari
Dorin Paslaru 8 лет назад
Родитель
Сommit
aaa532ba74

+ 7 - 26
src/components/atoms/StatusIcon/images/progress.js

@@ -12,32 +12,13 @@ You should have received a copy of the GNU Affero General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-const image = (bigColor, smallColor) => `<?xml version="1.0" encoding="UTF-8"?>
-<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-    <!-- Generator: Sketch 47.1 (45422) - http://www.bohemiancoding.com/sketch -->
-    <title>Icon-Progress</title>
-    <desc>Created with Sketch.</desc>
-    <defs>
-        <path d="M8,16 C3.581722,16 0,12.418278 0,8 C0,3.581722 3.581722,0 8,0 C12.418278,0 16,3.581722 16,8 C16,12.418278 12.418278,16 8,16 Z M8,14 C11.3137085,14 14,11.3137085 14,8 C14,4.6862915 11.3137085,2 8,2 C4.6862915,2 2,4.6862915 2,8 C2,11.3137085 4.6862915,14 8,14 Z" id="path-1"></path>
-    </defs>
-    <g id="Coriolis" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
-        <g id="202-Replica-Executions" transform="translate(-392.000000, -376.000000)">
-            <g id="Group-2" transform="translate(360.000000, 240.000000)">
-                <g id="Group-3" transform="translate(0.000000, 79.000000)">
-                    <g id="Icon/Progress/Darker" transform="translate(32.000000, 57.000000)">
-                        <mask id="mask-2" fill="white">
-                            <use xlink:href="#path-1"></use>
-                        </mask>
-                        <g id="Mask"></g>
-                        <g id="Group-2" stroke-width="1" fill-rule="evenodd" mask="url(#mask-2)">
-                            <circle id="Oval-2-Copy" fill="${bigColor}" cx="8" cy="8" r="8"></circle>
-                            <path d="M16,8 C16,3.581722 12.418278,0 8,0 L8,8 L16,8 Z" id="Combined-Shape" fill="${smallColor}"></path>
-                        </g>
-                    </g>
-                </g>
-            </g>
-        </g>
+const image = (bigColor, smallColor) => `
+  <svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <g>
+      <circle fill="none" stroke="${bigColor}" stroke-width="2"  cx="8" cy="8" r="7"></circle>
+      <path d="M 15 8 A 7 7 0 0 0 8 1" fill="none" stroke="${smallColor}" stroke-width="2" />
     </g>
-</svg>`
+  </svg>
+`
 
 export default image

+ 4 - 18
src/components/molecules/LoadingButton/images/loading.svg

@@ -1,21 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-    <!-- Generator: Sketch 47.1 (45422) - http://www.bohemiancoding.com/sketch -->
-    <title>Icon-Progress-White-Grey</title>
-    <desc>Created with Sketch.</desc>
-    <defs>
-        <path d="M8,16 C3.581722,16 0,12.418278 0,8 C0,3.581722 3.581722,0 8,0 C12.418278,0 16,3.581722 16,8 C16,12.418278 12.418278,16 8,16 Z M8,14 C11.3137085,14 14,11.3137085 14,8 C14,4.6862915 11.3137085,2 8,2 C4.6862915,2 2,4.6862915 2,8 C2,11.3137085 4.6862915,14 8,14 Z" id="path-1"></path>
-    </defs>
-    <g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
-        <g id="Forms/Button/Blue-Icon" transform="translate(-168.000000, -8.000000)">
-            <g id="Icon/Progress/White" transform="translate(168.000000, 8.000000)">
-                <mask id="mask-2" fill="white">
-                    <use xlink:href="#path-1"></use>
-                </mask>
-                <g id="Mask"></g>
-                <circle id="Oval-2-Copy" fill="#FFFFFF" fill-rule="evenodd" mask="url(#mask-2)" cx="8" cy="8" r="8"></circle>
-                <path d="M17,8 C17,3.02943725 12.9705627,-1 8,-1 L8,8 L17,8 Z" id="Combined-Shape" fill="#7190CD" fill-rule="evenodd" mask="url(#mask-2)"></path>
-            </g>
-        </g>
-    </g>
+  <g>
+    <circle fill="none" stroke="white" stroke-width="2"  cx="8" cy="8" r="7"></circle>
+    <path d="M 15 8 A 7 7 0 0 0 8 1" fill="none" stroke="#7190CD" stroke-width="2" />
+  </g>
 </svg>