Commit a3264ca3 authored by Mike Greiling's avatar Mike Greiling

Fix accessibility label for "start a new discussion"

parent e3da53d8
......@@ -36,6 +36,7 @@ export default {
<template v-else-if="renderReplyPlaceholder">
<reply-placeholder
:placeholder-text="__('Start a new discussion…')"
:label-text="__('New discussion')"
@focus="$emit('showNewDiscussionForm')"
/>
</template>
......
<script>
import { __ } from '~/locale';
export default {
name: 'ReplyPlaceholder',
props: {
placeholderText: {
type: String,
required: true,
required: false,
default: __('Reply…'),
},
labelText: {
type: String,
required: false,
default: __('Reply to comment'),
},
},
};
......@@ -16,7 +24,7 @@ export default {
rows="1"
class="reply-placeholder-text-field js-vue-discussion-reply"
:placeholder="placeholderText"
:aria-label="__('Reply to comment')"
:aria-label="labelText"
@focus="$emit('focus')"
></textarea>
</template>
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