Improved accessibility (#118):

* aria-hidden on the channel avatar in the `p/livechat/configuration`
  page.
This commit is contained in:
John Livingston 2024-08-29 11:28:58 +02:00
parent c6d012cfb4
commit 944bdcebb7
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC

View File

@ -50,7 +50,7 @@ export class ChannelHomeElement extends LivechatElement {
<ul class="peertube-plugin-livechat-configuration-home-channels">
${this._channels?.map((channel) => html`
<li>
<a href="${channel.livechatConfigurationUri}">
<a href="${channel.livechatConfigurationUri}" aria-hidden="true">
${channel.avatar
? html`<img class="avatar channel" src="${channel.avatar.path}">`
: html`<div class="avatar channel initial gray"></div>`