mirror of
https://github.com/flarum/core.git
synced 2025-08-06 08:27:42 +02:00
fix: resolve a11y
warnings in Admin Frontend (#4184)
This commit is contained in:
@@ -19,7 +19,12 @@ function tagItem(tag) {
|
||||
<div className="TagListItem-info">
|
||||
{tagIcon(tag)}
|
||||
<span className="TagListItem-name">{tag.name()}</span>
|
||||
<Button className="Button Button--link" icon="fas fa-pencil-alt" onclick={() => app.modal.show(EditTagModal, { model: tag })} />
|
||||
<Button
|
||||
className="Button Button--link"
|
||||
icon="fas fa-pencil-alt"
|
||||
aria-label={app.translator.trans('flarum-tags.admin.tags.edit_tag_label', { tag: tag.name() })}
|
||||
onclick={() => app.modal.show(EditTagModal, { model: tag })}
|
||||
/>
|
||||
</div>
|
||||
{!tag.isChild() && tag.position() !== null && (
|
||||
<ol className="TagListItem-children TagList">
|
||||
|
@@ -56,6 +56,7 @@ flarum-tags:
|
||||
about_tags_text: "Tags are used to categorize discussions. Primary tags are like traditional forum categories: they can be arranged in a two-level hierarchy. Secondary tags do not have hierarchy or order, and are useful for micro-categorization."
|
||||
create_primary_tag_button: Create Primary Tag
|
||||
create_secondary_tag_button: Create Secondary Tag
|
||||
edit_tag_label: Edit Tag {tag}
|
||||
primary_heading: Primary Tags
|
||||
secondary_heading: Secondary Tags
|
||||
settings_heading: Settings
|
||||
|
Reference in New Issue
Block a user