From 5b3fb138a584649782ea92df262d0a78c5386f4d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 1 Apr 2024 00:50:46 +0200 Subject: improve accessability here and there --- client-web/source/user/mod.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client-web/source/user/mod.ts') 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" }) -- cgit v1.2.3-70-g09d2