Remove some data attributes
This commit is contained in:
parent
e76d5d2ef9
commit
0ac9601a3a
@ -11,8 +11,6 @@
|
|||||||
]"
|
]"
|
||||||
:aria-label="getAriaLabel()"
|
:aria-label="getAriaLabel()"
|
||||||
:title="getAriaLabel()"
|
:title="getAriaLabel()"
|
||||||
:data-id="channel.id"
|
|
||||||
:data-target="'#chan-' + channel.id"
|
|
||||||
:data-name="channel.name"
|
:data-name="channel.name"
|
||||||
:aria-controls="'#chan-' + channel.id"
|
:aria-controls="'#chan-' + channel.id"
|
||||||
:aria-selected="activeChannel && channel === activeChannel.channel"
|
:aria-selected="activeChannel && channel === activeChannel.channel"
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
<div id="chat-container" class="window" :data-current-channel="channel.name">
|
<div id="chat-container" class="window" :data-current-channel="channel.name">
|
||||||
<div
|
<div
|
||||||
id="chat"
|
id="chat"
|
||||||
:data-id="channel.id"
|
|
||||||
:class="{
|
:class="{
|
||||||
'hide-motd': !$store.state.settings.motd,
|
'hide-motd': !$store.state.settings.motd,
|
||||||
'colored-nicks': $store.state.settings.coloredNicks,
|
'colored-nicks': $store.state.settings.coloredNicks,
|
||||||
@ -12,8 +11,6 @@
|
|||||||
<div
|
<div
|
||||||
:id="'chan-' + channel.id"
|
:id="'chan-' + channel.id"
|
||||||
:class="[channel.type, 'chan', 'active']"
|
:class="[channel.type, 'chan', 'active']"
|
||||||
:data-id="channel.id"
|
|
||||||
:data-type="channel.type"
|
|
||||||
:aria-label="channel.name"
|
:aria-label="channel.name"
|
||||||
role="tabpanel"
|
role="tabpanel"
|
||||||
>
|
>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div :aria-label="localeDate" class="date-marker-container tooltipped tooltipped-s">
|
<div :aria-label="localeDate" class="date-marker-container tooltipped tooltipped-s">
|
||||||
<div class="date-marker">
|
<div class="date-marker">
|
||||||
<span :data-label="friendlyDate()" class="date-marker-text" />
|
<span :aria-label="friendlyDate()" class="date-marker-text" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -26,8 +26,6 @@
|
|||||||
'not-connected': !network.status.connected,
|
'not-connected': !network.status.connected,
|
||||||
'not-secure': !network.status.secure,
|
'not-secure': !network.status.secure,
|
||||||
}"
|
}"
|
||||||
:data-uuid="network.uuid"
|
|
||||||
:data-nick="network.nick"
|
|
||||||
class="network"
|
class="network"
|
||||||
role="region"
|
role="region"
|
||||||
>
|
>
|
||||||
|
@ -1234,7 +1234,7 @@ background on hover (unless active) */
|
|||||||
}
|
}
|
||||||
|
|
||||||
#chat .date-marker-text::before {
|
#chat .date-marker-text::before {
|
||||||
content: attr(data-label);
|
content: attr(aria-label);
|
||||||
background-color: var(--window-bg-color);
|
background-color: var(--window-bg-color);
|
||||||
color: var(--date-marker-color);
|
color: var(--date-marker-color);
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
|
@ -97,7 +97,9 @@ Mousetrap.bind(["alt+a"], function() {
|
|||||||
function jumpToChannel(targetChannel) {
|
function jumpToChannel(targetChannel) {
|
||||||
switchToChannel(targetChannel);
|
switchToChannel(targetChannel);
|
||||||
|
|
||||||
scrollIntoViewNicely(document.querySelector(`#sidebar .chan[data-id="${targetChannel.id}"]`));
|
scrollIntoViewNicely(
|
||||||
|
document.querySelector(`#sidebar .chan[aria-controls="#chan-${targetChannel.id}"]`)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ignored keys which should not automatically focus the input bar
|
// Ignored keys which should not automatically focus the input bar
|
||||||
|
Loading…
Reference in New Issue
Block a user