Add accessibility labels to mentions (#14667)
This commit is contained in:
parent
5493d059b9
commit
13e59635c7
|
@ -11,22 +11,21 @@
|
|||
(defn mention-item
|
||||
[[public-key {:keys [alias name nickname] :as user}] _ _ text-input-ref]
|
||||
(let [ens-name? (not= alias name)]
|
||||
[rn/touchable-opacity {:on-press #(rf/dispatch [:chat.ui/select-mention text-input-ref user])}
|
||||
[rn/touchable-opacity
|
||||
{:on-press #(rf/dispatch [:chat.ui/select-mention text-input-ref user])
|
||||
:accessibility-label :mention-item}
|
||||
;;TODO quo2 item should be used
|
||||
[list-item/list-item
|
||||
(cond->
|
||||
{:icon [photos/member-photo public-key]
|
||||
:size :small
|
||||
:text-size :small
|
||||
:title
|
||||
[text/text
|
||||
:title [text/text
|
||||
{:weight :medium
|
||||
:ellipsize-mode :tail
|
||||
:number-of-lines 1
|
||||
:size :small}
|
||||
(if nickname
|
||||
nickname
|
||||
name)
|
||||
(or nickname name)
|
||||
(when nickname
|
||||
[text/text
|
||||
{:weight :regular
|
||||
|
@ -58,4 +57,5 @@
|
|||
:key-fn first
|
||||
:render-fn mention-item
|
||||
:render-data text-input-ref
|
||||
:content-container-style {:padding-bottom 12}}]]))])
|
||||
:content-container-style {:padding-bottom 12}
|
||||
:accessibility-label :mentions-list}]]))])
|
||||
|
|
Loading…
Reference in New Issue