mirror of
https://github.com/status-im/status-react.git
synced 2025-02-10 09:57:15 +00:00
Add accessibility to components (#14359)
- chat name text component - quoted message text component
This commit is contained in:
parent
2f4d8accae
commit
1228f4aa26
@ -81,6 +81,7 @@
|
|||||||
(defn display-name-view [display-name contact timestamp]
|
(defn display-name-view [display-name contact timestamp]
|
||||||
[rn/view {:style {:flex-direction :row}}
|
[rn/view {:style {:flex-direction :row}}
|
||||||
[text/text {:weight :semi-bold
|
[text/text {:weight :semi-bold
|
||||||
|
:accessibility-label :chat-name-text
|
||||||
:size :paragraph-1}
|
:size :paragraph-1}
|
||||||
display-name]
|
display-name]
|
||||||
[verified-or-contact-icon contact]
|
[verified-or-contact-icon contact]
|
||||||
|
@ -63,10 +63,13 @@
|
|||||||
:number-of-lines 1
|
:number-of-lines 1
|
||||||
:style {:margin-left 4}}
|
:style {:margin-left 4}}
|
||||||
(format-reply-author from contact-name current-public-key)]
|
(format-reply-author from contact-name current-public-key)]
|
||||||
[quo2.text/text {:number-of-lines 1
|
[quo2.text/text
|
||||||
|
{:number-of-lines 1
|
||||||
:size :label
|
:size :label
|
||||||
:weight :regular
|
:weight :regular
|
||||||
:style (merge {:ellipsize-mode :tail
|
:accessibility-label :quoted-message
|
||||||
|
:style (merge
|
||||||
|
{:ellipsize-mode :tail
|
||||||
:text-transform :none
|
:text-transform :none
|
||||||
:margin-left 4
|
:margin-left 4
|
||||||
:margin-top 2}
|
:margin-top 2}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user