Commit adc60119 authored by Michael Le's avatar Michael Le Committed by Vitaly Slobodin

Use aria-label

parent d111268f
...@@ -90,7 +90,7 @@ export default { ...@@ -90,7 +90,7 @@ export default {
}; };
</script> </script>
<template> <template>
<figure class="file-holder snippet-file-content"> <figure class="file-holder snippet-file-content" aria-label="Code snippet">
<blob-header <blob-header
:blob="blob" :blob="blob"
:active-viewer-type="viewer.type" :active-viewer-type="viewer.type"
......
.gitlab-embed-snippets .gitlab-embed-snippets
figcaption
= blob.name
.js-file-title.file-title-flex-parent .js-file-title.file-title-flex-parent
.file-header-content .file-header-content
= external_snippet_icon('doc-text') = external_snippet_icon('doc-text')
...@@ -19,5 +17,5 @@ ...@@ -19,5 +17,5 @@
= embedded_raw_snippet_button(@snippet, blob) = embedded_raw_snippet_button(@snippet, blob)
= embedded_snippet_download_button(@snippet, blob) = embedded_snippet_download_button(@snippet, blob)
%figure.file-holder.snippet-file-content %figure.file-holder.snippet-file-content{ "aria-label" => "Code snippet" }
= render 'projects/blob/viewer', viewer: blob.simple_viewer, load_async: false, external_embed: true = render 'projects/blob/viewer', viewer: blob.simple_viewer, load_async: false, external_embed: true
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment