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