From 2f5384516b2676758b04784a1b1574e875b44824 Mon Sep 17 00:00:00 2001 From: Kartik Soneji Date: Wed, 7 Jul 2021 23:49:24 +0530 Subject: [PATCH] Optimize and add to SVGs (#4034) * Optimize SVGs. * Add <title> to SVGs. * Add role="img" to SVGs. --- client/public/assets/badges.svg | 32 +++++++++++++------ client/src/assets/clippy.svg | 13 +++++++- client/src/assets/dino.svg | 7 +++- .../src/assets/home-masthead-background.svg | 10 +++++- client/src/assets/logo.svg | 28 +++++++++++++++- mdn-web-docs.svg | 9 +++++- 6 files changed, 84 insertions(+), 15 deletions(-) diff --git a/client/public/assets/badges.svg b/client/public/assets/badges.svg index e774912739c5..455077409539 100644 --- a/client/public/assets/badges.svg +++ b/client/public/assets/badges.svg @@ -1,13 +1,25 @@ -<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> - <symbol id="icon-experimental" viewBox="0 0 100 100"> - <path d="M90.72 82.34c4.4 7 1.29 12.66-7 12.66H16.25C8 95 4.88 89.31 9.28 82.34l29.47-46.46V12.5H35A3.75 3.75 0 0135 5h30a3.75 3.75 0 010 7.5h-3.75v23.38zM45.08 39.86L29.14 65h41.72L54.92 39.86l-1.17-1.81V12.5h-7.5v25.55z" fill="currentColor"/> - </symbol> +<svg xmlns="http://www.w3.org/2000/svg"> + <symbol id="icon-experimental" viewBox="0 0 100 100" role="img"> + <title>Experimental + + - - - + + Non-Standard + + - - - + + Deprecated + + diff --git a/client/src/assets/clippy.svg b/client/src/assets/clippy.svg index 4966649b9619..5018d689370c 100644 --- a/client/src/assets/clippy.svg +++ b/client/src/assets/clippy.svg @@ -1 +1,12 @@ - \ No newline at end of file + + Copy to Clipboard + + diff --git a/client/src/assets/dino.svg b/client/src/assets/dino.svg index 5a133e48e1e8..f6eb6cb9f6e9 100644 --- a/client/src/assets/dino.svg +++ b/client/src/assets/dino.svg @@ -1 +1,6 @@ - + + MDN Dino + + diff --git a/client/src/assets/home-masthead-background.svg b/client/src/assets/home-masthead-background.svg index 5e3e5c1fc716..df9ae34fe1e8 100644 --- a/client/src/assets/home-masthead-background.svg +++ b/client/src/assets/home-masthead-background.svg @@ -1 +1,9 @@ - + + MDN Masthead Background + + diff --git a/client/src/assets/logo.svg b/client/src/assets/logo.svg index 6ab24dd8cd47..f6d05fd25f52 100644 --- a/client/src/assets/logo.svg +++ b/client/src/assets/logo.svg @@ -1 +1,27 @@ - + + MDN Logo + + + + + + + + + diff --git a/mdn-web-docs.svg b/mdn-web-docs.svg index 9b892407efc2..48eeb05102fe 100644 --- a/mdn-web-docs.svg +++ b/mdn-web-docs.svg @@ -1 +1,8 @@ -mdn-web-docs \ No newline at end of file + + MDN Web Docs + + +