diff options
| author | Henry Jameson <me@hjkos.com> | 2022-08-24 20:24:08 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-08-24 20:24:08 +0300 |
| commit | cf714c2756ac0b5981c269360c2024ab45da5d97 (patch) | |
| tree | 4ca56304a64b1011c2c01bc76d3e8e2c05009705 /src | |
| parent | 8dceffa8d79331aba1cc4efcc15710e902d938f2 (diff) | |
a11y
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/navigation/navigation_entry.vue | 2 | ||||
| -rw-r--r-- | src/components/navigation/navigation_pins.vue | 1 | ||||
| -rw-r--r-- | src/i18n/en.json | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/src/components/navigation/navigation_entry.vue b/src/components/navigation/navigation_entry.vue index c0b405f5..ecd4dc73 100644 --- a/src/components/navigation/navigation_entry.vue +++ b/src/components/navigation/navigation_entry.vue @@ -18,6 +18,8 @@ <button type="button" class="button-unstyled" + :title="$t(isPinned ? 'general.unpin' : 'general.pin' )" + :aria-pressed="!!isPinned" @click.stop.prevent="togglePin(item.name)" > <FAIcon diff --git a/src/components/navigation/navigation_pins.vue b/src/components/navigation/navigation_pins.vue index a46fba7a..5b3fa6f4 100644 --- a/src/components/navigation/navigation_pins.vue +++ b/src/components/navigation/navigation_pins.vue @@ -5,6 +5,7 @@ :key="item.name" class="pinned-item" :to="getRouteTo(item)" + :title="item.labelRaw || $t(item.label)" > <FAIcon v-if="item.icon" diff --git a/src/i18n/en.json b/src/i18n/en.json index b7839a12..68bf883a 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -88,6 +88,8 @@ "admin": "Admin", "moderator": "Moderator" }, + "unpin": "Unpin item", + "pin": "Pin item", "flash_content": "Click to show Flash content using Ruffle (Experimental, may not work).", "flash_security": "Note that this can be potentially dangerous since Flash content is still arbitrary code.", "flash_fail": "Failed to load flash content, see console for details.", |
