mirror of
https://github.com/status-im/status-mobile.git
synced 2025-02-26 23:31:03 +00:00
Add accessibility to components (#14359)
- chat name text component - quoted message text component
This commit is contained in:
parent
2f4d8accae
commit
1228f4aa26
@ -80,8 +80,9 @@
|
|||||||
|
|
||||||
(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
|
||||||
:size :paragraph-1}
|
:accessibility-label :chat-name-text
|
||||||
|
:size :paragraph-1}
|
||||||
display-name]
|
display-name]
|
||||||
[verified-or-contact-icon contact]
|
[verified-or-contact-icon contact]
|
||||||
[text/text {:style (style/timestamp)}
|
[text/text {:style (style/timestamp)}
|
||||||
|
@ -63,17 +63,20 @@
|
|||||||
: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
|
||||||
:size :label
|
{:number-of-lines 1
|
||||||
:weight :regular
|
:size :label
|
||||||
:style (merge {:ellipsize-mode :tail
|
:weight :regular
|
||||||
:text-transform :none
|
:accessibility-label :quoted-message
|
||||||
:margin-left 4
|
:style (merge
|
||||||
:margin-top 2}
|
{:ellipsize-mode :tail
|
||||||
(when (or (= constants/content-type-image content-type)
|
:text-transform :none
|
||||||
(= constants/content-type-sticker content-type)
|
:margin-left 4
|
||||||
(= constants/content-type-audio content-type))
|
:margin-top 2}
|
||||||
{:color (colors/theme-colors colors/neutral-50 colors/neutral-40)}))}
|
(when (or (= constants/content-type-image content-type)
|
||||||
|
(= constants/content-type-sticker content-type)
|
||||||
|
(= constants/content-type-audio content-type))
|
||||||
|
{:color (colors/theme-colors colors/neutral-50 colors/neutral-40)}))}
|
||||||
(case (or content-type contentType)
|
(case (or content-type contentType)
|
||||||
constants/content-type-image "Image"
|
constants/content-type-image "Image"
|
||||||
constants/content-type-sticker "Sticker"
|
constants/content-type-sticker "Sticker"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user