aboutsummaryrefslogtreecommitdiff
path: root/client-web/source/user/mod.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-04-01 00:50:46 +0200
committermetamuffin <metamuffin@disroot.org>2024-04-01 00:50:46 +0200
commit5b3fb138a584649782ea92df262d0a78c5386f4d (patch)
tree4d74dd2ab406d6000e800ce64d16c2201dc038ba /client-web/source/user/mod.ts
parent78a02af787a4011a60f2ec964da9130c737478d4 (diff)
downloadkeks-meet-5b3fb138a584649782ea92df262d0a78c5386f4d.tar
keks-meet-5b3fb138a584649782ea92df262d0a78c5386f4d.tar.bz2
keks-meet-5b3fb138a584649782ea92df262d0a78c5386f4d.tar.zst
improve accessability here and there
Diffstat (limited to 'client-web/source/user/mod.ts')
-rw-r--r--client-web/source/user/mod.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client-web/source/user/mod.ts b/client-web/source/user/mod.ts
index da326b9..7c6c212 100644
--- a/client-web/source/user/mod.ts
+++ b/client-web/source/user/mod.ts
@@ -10,14 +10,14 @@ import { Room } from "../room.ts";
export class User {
private _name?: string
- set name(v: string | undefined) { this._name = v; this.name_el.textContent = this.display_name }
+ set name(v: string | undefined) { this._name = v; this.name_el.textContent = this.display_name; this.el.ariaLabel = "user " + this.display_name }
get name() { return this._name }
get display_name() { return this.name ?? "Unknown" }
name_el = e("span", {}, this.display_name)
status_el = e("span", { class: ["connection-status", "status-neutral"] }, "")
stats_el = e("pre", {})
- el = e("div", { class: "user" })
+ el = e("div", { class: "user", role: "group", aria_label: `unknown user` })
constructor(public room: Room, public id: number) {
const info_el = e("div", { class: "info" })