Add accessibility id for community unread indicators (#15485)

This commit is contained in:
Ibrahem Khalil 2023-04-02 20:16:51 +02:00 committed by GitHub
parent 103e154076
commit 7ed4bc5a5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -3,6 +3,7 @@
[quo2.components.common.unread-grey-dot.style :as style])) [quo2.components.common.unread-grey-dot.style :as style]))
(defn unread-grey-dot (defn unread-grey-dot
[] [accessibility-label]
[rn/view [rn/view
{:style style/unread-grey-dot}]) (cond-> {:style style/unread-grey-dot}
accessibility-label (assoc :accessibility-label accessibility-label :accessible true))])

View File

@ -27,7 +27,7 @@
[counter/counter {:type :default} unread-mentions-count] [counter/counter {:type :default} unread-mentions-count]
unread-messages? unread-messages?
[unread-grey-dot])) [unread-grey-dot :unviewed-messages-public]))
(defn communities-list-view-item (defn communities-list-view-item
[props [props

View File

@ -62,4 +62,4 @@
(not muted?) (not muted?)
(not (pos? (int mentions-count))) (not (pos? (int mentions-count)))
unread-messages?) unread-messages?)
[unread-grey-dot])]]]) [unread-grey-dot :unviewed-messages-public])]]])