[#14381] Add accessibility lables for chat key and timestamp in message
This commit is contained in:
parent
0f7ccce3df
commit
cf753a0892
|
@ -288,11 +288,17 @@
|
||||||
display-name]
|
display-name]
|
||||||
[message-home-item/verified-or-contact-icon contact]
|
[message-home-item/verified-or-contact-icon contact]
|
||||||
(when show-key?
|
(when show-key?
|
||||||
[text/text {:size :label
|
(let [props {:size :label
|
||||||
:style {:color (colors/theme-colors colors/neutral-50 colors/neutral-40)
|
:style {:color (colors/theme-colors colors/neutral-50 colors/neutral-40)}}]
|
||||||
:margin-left 8
|
[text/text {:style {:margin-left 8
|
||||||
:margin-top 2}}
|
:margin-top 2}}
|
||||||
(str (utils/get-shortened-address (:public-key contact)) " • " (time/to-short-str timestamp))])])
|
[text/text
|
||||||
|
(assoc props :accessibility-label :message-chat-key)
|
||||||
|
(utils/get-shortened-address (:public-key contact))]
|
||||||
|
[text/text props " • "]
|
||||||
|
[text/text
|
||||||
|
(assoc props :accessibility-label :message-timestamp)
|
||||||
|
(time/to-short-str timestamp)]]))])
|
||||||
|
|
||||||
(defn message-content-wrapper
|
(defn message-content-wrapper
|
||||||
"Author, userpic and delivery wrapper"
|
"Author, userpic and delivery wrapper"
|
||||||
|
|
Loading…
Reference in New Issue