Explorar o código

fix: Add aria-label to end-to-end encryption blog link (#3367)

Arun %!s(int64=4) %!d(string=hai) anos
pai
achega
bdf6e53289
Modificáronse 2 ficheiros con 3 adicións e 1 borrados
  1. 1 0
      src/components/LayerUI.tsx
  2. 2 1
      src/locales/en.json

+ 1 - 0
src/components/LayerUI.tsx

@@ -350,6 +350,7 @@ const LayerUI = ({
       href="https://blog.excalidraw.com/end-to-end-encryption/"
       target="_blank"
       rel="noopener noreferrer"
+      aria-label={t("encrypted.link")}
     >
       <Tooltip label={t("encrypted.tooltip")} position="above" long={true}>
         {shield}

+ 2 - 1
src/locales/en.json

@@ -230,7 +230,8 @@
     "zoomToSelection": "Zoom to selection"
   },
   "encrypted": {
-    "tooltip": "Your drawings are end-to-end encrypted so Excalidraw's servers will never see them."
+    "tooltip": "Your drawings are end-to-end encrypted so Excalidraw's servers will never see them.",
+    "link": "Blog post on end-to-end encryption in Excalidraw"
   },
   "stats": {
     "angle": "Angle",