improve accessibility even more
Some checks are pending
continuous-integration/drone/push Build is running

This commit is contained in:
2023-03-19 15:28:53 -04:00
parent 4e17739b4d
commit a03f8ebb8a
24 changed files with 290 additions and 158 deletions

View File

@ -11,7 +11,8 @@
>
<%= text_input(f, :slug,
class: "input input-primary",
placeholder: gettext("slug")
placeholder: gettext("slug"),
aria_label: gettext("slug")
) %>
<%= error_tag(f, :slug) %>
@ -20,21 +21,24 @@
class: "input input-primary h-64 min-h-64",
phx_hook: "MaintainAttrs",
phx_update: "ignore",
placeholder: gettext("use [[note-slug]] to link to a note")
placeholder: gettext("use [[note-slug]] to link to a note"),
aria_label: gettext("use [[note-slug]] to link to a note")
) %>
<%= error_tag(f, :content) %>
<%= text_input(f, :tags_string,
id: "tags-input",
class: "input input-primary",
placeholder: gettext("tag1,tag2")
placeholder: gettext("tag1,tag2"),
aria_label: gettext("tag1,tag2")
) %>
<%= error_tag(f, :tags_string) %>
<div class="flex justify-center items-stretch space-x-4">
<%= select(f, :visibility, Ecto.Enum.values(Memex.Contexts.Context, :visibility),
class: "grow input input-primary",
prompt: gettext("select privacy")
prompt: gettext("select privacy"),
aria_label: gettext("select privacy")
) %>
<%= submit(dgettext("actions", "save"),

View File

@ -14,6 +14,7 @@
<%= text_input(f, :search_term,
class: "input input-primary",
value: @search,
role: "search",
phx_debounce: 300,
placeholder: gettext("search")
) %>