summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authordelvh <dev.lh@web.de>2023-04-11 09:26:18 +0200
committerGitHub <noreply@github.com>2023-04-11 15:26:18 +0800
commit91c8261e2cc479af127fb7b1e0803cd0f57d65f7 (patch)
treee21e868a22f3c55dba2efcb008ed78a080aa711c /options
parent7a8a4f54321f208ebbb0f708a5f0e49c4cd4cc04 (diff)
downloadgitea-91c8261e2cc479af127fb7b1e0803cd0f57d65f7.tar.gz
gitea-91c8261e2cc479af127fb7b1e0803cd0f57d65f7.zip
Add tooltips for MD editor buttons and add `muted` class for buttons (#23896)
Followup of #23876 according to my unreleased review demanding tooltips. Additionally - add a `muted` equivalent for buttons - convert `switch to legacy` to an actual button - enroll `switch to legacy` in the builtin pseudo focus cycle - remove spaces between the buttons The effect of the `muted` class is what you would expect: The button loses all of its normal styling, and is defined only by its content instead. This will help reduce a11y infractions in the future, as that was one of the major points why people didn't use `<button>` tags and decided on a bad fix (i.e. through `<div>`s) instead. ## Appearance ![image](https://user-images.githubusercontent.com/51889757/229510842-337378e5-faa5-4886-a910-08614c0c233d.png) --------- Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'options')
-rw-r--r--options/locale/locale_en-US.ini14
1 files changed, 14 insertions, 0 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index 08b23e0387..0a10b70d9d 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -120,6 +120,20 @@ footer = Footer
footer.software = About Software
footer.links = Links
+[editor]
+buttons.heading.tooltip = Add heading
+buttons.bold.tooltip = Add bold text
+buttons.italic.tooltip = Add italic text
+buttons.quote.tooltip = Quote text
+buttons.code.tooltip = Add code
+buttons.link.tooltip = Add a link
+buttons.list.unordered.tooltip = Add a bullet list
+buttons.list.ordered.tooltip = Add a numbered list
+buttons.list.task.tooltip = Add a list of tasks
+buttons.mention.tooltip = Mention a user or team
+buttons.ref.tooltip = Reference an issue or pull request
+buttons.switch_to_legacy.tooltip = Use the legacy editor instead
+
[filter]
string.asc = A - Z
string.desc = Z - A