diff --git a/client/components/App.vue b/client/components/App.vue index 834598b2..74e27533 100644 --- a/client/components/App.vue +++ b/client/components/App.vue @@ -1,60 +1,72 @@ + role="tablist" + > @@ -62,31 +74,37 @@ + :channel="activeChannel.channel" + /> + aria-label="Sign-in" + /> + aria-label="Connect" + /> + aria-label="Settings" + /> + aria-label="Help" + /> + aria-label="Changelog" + /> diff --git a/client/components/Channel.vue b/client/components/Channel.vue index b861c646..fb1a3cf5 100644 --- a/client/components/Channel.vue +++ b/client/components/Channel.vue @@ -2,28 +2,34 @@ + :active-channel="activeChannel" + > {{ channel.name }} {{ channel.unread | roundBadgeNumber }} + class="badge" + >{{ channel.unread | roundBadgeNumber }} + aria-label="Leave" + > + aria-label="Leave" + /> + aria-label="Close" + > + aria-label="Close" + /> diff --git a/client/components/ChannelWrapper.vue b/client/components/ChannelWrapper.vue index cd5ed80a..388446ce 100644 --- a/client/components/ChannelWrapper.vue +++ b/client/components/ChannelWrapper.vue @@ -14,11 +14,13 @@ :aria-controls="'#chan-' + channel.id" :aria-selected="activeChannel && channel === activeChannel.channel" class="chan" - role="tab"> + role="tab" + > + :activeChannel="activeChannel" + /> diff --git a/client/components/Chat.vue b/client/components/Chat.vue index 07d9915a..2fe4b856 100644 --- a/client/components/Chat.vue +++ b/client/components/Chat.vue @@ -1,7 +1,8 @@ + class="window" + > + }" + > + role="tabpanel" + > + aria-label="Toggle channel list" + /> {{ channel.name }} + class="topic" + > + aria-label="Open the context menu" + /> + aria-label="Toggle user list" + > + aria-label="Toggle user list" + /> + class="chat-content" + > + :channel="channel" + /> + class="chat-content" + > + @click="$refs.messageList.jumpToBottom()" + > + :channel="channel" + /> + :channel="channel" + /> {{ this.$root.currentUserVisibleError }} + @click="hideUserVisibleError" + >{{ this.$root.currentUserVisibleError }} + :channel="channel" + /> diff --git a/client/components/ChatInput.vue b/client/components/ChatInput.vue index c3695162..a7cf8e6c 100644 --- a/client/components/ChatInput.vue +++ b/client/components/ChatInput.vue @@ -3,7 +3,8 @@ id="form" method="post" action="" - @submit.prevent="onSubmit"> + @submit.prevent="onSubmit" + > {{ network.nick }} + @keypress.enter.exact.prevent="onSubmit" + /> + @click="openFileUpload" + > + multiple + > + :disabled="!this.$root.isConnected" + /> + aria-label="Send message" + > + :disabled="!this.$root.isConnected" + /> diff --git a/client/components/ChatUserList.vue b/client/components/ChatUserList.vue index 60240f0d..8fc72f03 100644 --- a/client/components/ChatUserList.vue +++ b/client/components/ChatUserList.vue @@ -2,7 +2,8 @@