From 990294bb60889e58cd366ac020a5896d5d10ef57 Mon Sep 17 00:00:00 2001 From: mehm8128 Date: Tue, 18 Jul 2023 00:25:43 +0900 Subject: [PATCH 01/14] =?UTF-8?q?=E3=83=81=E3=83=A3=E3=83=B3=E3=83=8D?= =?UTF-8?q?=E3=83=AB=E4=B8=80=E8=A6=A7=E3=82=92=E3=82=AD=E3=83=BC=E3=83=9C?= =?UTF-8?q?=E3=83=BC=E3=83=89=E6=93=8D=E4=BD=9C=E5=8F=AF=E8=83=BD=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ChannelList/ChannelElement.vue | 26 +++++++++++++---- .../ChannelList/ChannelElementHash.vue | 28 ++++++++++++------- 2 files changed, 39 insertions(+), 15 deletions(-) diff --git a/src/components/Main/NavigationBar/ChannelList/ChannelElement.vue b/src/components/Main/NavigationBar/ChannelList/ChannelElement.vue index bbfeceaf3..d91bd8e83 100644 --- a/src/components/Main/NavigationBar/ChannelList/ChannelElement.vue +++ b/src/components/Main/NavigationBar/ChannelList/ChannelElement.vue @@ -5,11 +5,16 @@ :data-is-inactive="$boolAttr(!channel.active)" > -
@@ -32,7 +37,7 @@ :is-noticeable="notificationState.isNoticeable" :unread-count="notificationState.unreadCount" /> -
+
@@ -40,9 +45,10 @@
@@ -60,6 +66,7 @@ import ChannelElementName from './ChannelElementName.vue' import useNotificationState from '../composables/useNotificationState' import { useOpenLink } from '/@/composables/useOpenLink' import useChannelPath from '/@/composables/useChannelPath' +import useFocus from '/@/components/Main/MainView/MessageInput/composables/useFocus' const props = withDefaults( defineProps<{ @@ -103,6 +110,7 @@ const openChannel = (event: MouseEvent) => { const notificationState = useNotificationState(toRef(props, 'channel')) const { isHovered, onMouseEnter, onMouseLeave } = useHover() +const { isFocused, onFocus, onBlur } = useFocus() const { isHovered: isHashHovered, onMouseEnter: onHashMouseEnter, @@ -139,6 +147,13 @@ $bgLeftShift: 8px; padding-right: 4px; margin-left: $bgLeftShift; z-index: 0; + width: 100%; + &[data-is-inactive] { + @include color-ui-secondary; + } + &[aria-selected='true'] { + @include color-accent-primary; + } } .channelHash { flex-shrink: 0; @@ -161,7 +176,8 @@ $bgLeftShift: 8px; @include background-accent-primary; display: block; } - &[data-is-hovered] { + &[data-is-hovered], + &[data-is-focused] { display: block; background: $theme-ui-primary-background; } diff --git a/src/components/Main/NavigationBar/ChannelList/ChannelElementHash.vue b/src/components/Main/NavigationBar/ChannelList/ChannelElementHash.vue index f76346354..a2659ad02 100644 --- a/src/components/Main/NavigationBar/ChannelList/ChannelElementHash.vue +++ b/src/components/Main/NavigationBar/ChannelList/ChannelElementHash.vue @@ -1,5 +1,5 @@ -