Commit e501fb59 authored by Paul Slaughter's avatar Paul Slaughter

Add 'for' to 'File' label for snippet_file_path

parent 3610b817
......@@ -16,7 +16,7 @@ export default {
<template>
<div class="form-group file-editor">
<label>{{ s__('Snippets|File') }}</label>
<label for="snippet_file_path">{{ s__('Snippets|File') }}</label>
<template v-if="blobs.length">
<snippet-blob-edit v-for="blob in blobs" :key="blob.name" :blob="blob" v-on="$listeners" />
</template>
......
......@@ -92,7 +92,11 @@ export default {
</script>
<template>
<div class="file-holder snippet">
<blob-header-edit v-model="filePath" data-qa-selector="file_name_field" />
<blob-header-edit
id="snippet_file_path"
v-model="filePath"
data-qa-selector="file_name_field"
/>
<gl-loading-icon
v-if="isContentLoading"
:label="__('Loading snippet')"
......
......@@ -6,6 +6,7 @@ exports[`Snippet Blob Edit component rendering matches the snapshot 1`] = `
>
<blob-header-edit-stub
data-qa-selector="file_name_field"
id="snippet_file_path"
value="lorem.txt"
/>
......
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