Skip to content

Commit

Permalink
[#17393] fix: add missing accessibility-labels
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen-ghafouri committed Dec 20, 2023
1 parent 5e0bbaa commit 5cc2a2b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/quo/components/buttons/logout_button/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
[_ _]
(let [pressed? (reagent/atom false)]
(fn
[{:keys [on-press on-long-press disabled? theme accessibility-label container-style]}]
[{:keys [on-press on-long-press disabled? theme container-style]}]
[rn/pressable
{:accessibility-label (or accessibility-label :composer-button)
{:accessibility-label :log-out-button
:on-press on-press
:on-press-in #(reset! pressed? true)
:on-press-out #(reset! pressed? nil)
Expand Down
5 changes: 3 additions & 2 deletions src/quo/components/text_combinations/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@
description])
(when emoji-hash
[text/text
{:number-of-lines 1
:style style/emoji-hash}
{:number-of-lines 1
:accessibility-label :emoji-hash
:style style/emoji-hash}
emoji-hash])])

(def view (theme/with-theme view-internal))
7 changes: 4 additions & 3 deletions src/status_im/contexts/profile/settings/header/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@
status)}])}])}
status-title]]]
[quo/text-combinations
{:container-style style/title-container
:emoji-hash emoji-string
:title full-name}]]))
{:title-accessibility-label :username
:container-style style/title-container
:emoji-hash emoji-string
:title full-name}]]))

(def view (quo.theme/with-theme f-view))

0 comments on commit 5cc2a2b

Please sign in to comment.