mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
A11Y: makes edit username and avatar accessible (#12162)
This commit also adds name as a bindable attribute of link-to
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
export default {
|
||||||
|
name: "ember-link-component-extensions",
|
||||||
|
|
||||||
|
initialize() {
|
||||||
|
Ember.LinkComponent.reopen({
|
||||||
|
attributeBindings: ["name"],
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<div class="controls">
|
<div class="controls">
|
||||||
<span class="static">{{model.username}}</span>
|
<span class="static">{{model.username}}</span>
|
||||||
{{#if model.can_edit_username}}
|
{{#if model.can_edit_username}}
|
||||||
{{#link-to "preferences.username" class="btn btn-default btn-small btn-icon pad-left no-text"}}
|
{{#link-to "preferences.username" name=(i18n "user.username.edit") class="btn btn-default btn-small btn-icon pad-left no-text"}}
|
||||||
{{d-icon "pencil-alt"}}
|
{{d-icon "pencil-alt"}}
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|||||||
@@ -1323,6 +1323,7 @@ en:
|
|||||||
checking: "Checking username availability..."
|
checking: "Checking username availability..."
|
||||||
prefilled: "Email matches this registered username"
|
prefilled: "Email matches this registered username"
|
||||||
required: "Please enter a username"
|
required: "Please enter a username"
|
||||||
|
edit: "Edit username"
|
||||||
|
|
||||||
locale:
|
locale:
|
||||||
title: "Interface language"
|
title: "Interface language"
|
||||||
@@ -1558,6 +1559,7 @@ en:
|
|||||||
title: "Profile Picture"
|
title: "Profile Picture"
|
||||||
header_title: "profile, messages, bookmarks and preferences"
|
header_title: "profile, messages, bookmarks and preferences"
|
||||||
name_and_description: "%{name} - %{description}"
|
name_and_description: "%{name} - %{description}"
|
||||||
|
edit: "Edit Profile Picture"
|
||||||
title:
|
title:
|
||||||
title: "Title"
|
title: "Title"
|
||||||
none: "(none)"
|
none: "(none)"
|
||||||
|
|||||||
Reference in New Issue
Block a user