From 7c77809ff9a4d365ec17fb2ed43f3795382940a9 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Fri, 16 Feb 2024 00:29:16 +0200 Subject: badge, alert(dot) improvements --- src/components/alert.style.js | 9 +++++++- src/components/badge.style.js | 3 +-- src/components/chat/chat.vue | 2 +- src/components/chat_list_item/chat_list_item.vue | 2 +- src/components/menu_item.style.js | 3 ++- src/components/mobile_nav/mobile_nav.vue | 25 ++++------------------ src/components/navigation/navigation_entry.vue | 6 +++++- src/components/navigation/navigation_pins.vue | 13 +---------- src/components/notifications/notifications.vue | 2 +- .../settings_modal/tabs/theme_tab/preview.vue | 2 +- src/components/side_drawer/side_drawer.vue | 6 +++--- src/components/timeline/timeline.scss | 11 ---------- 12 files changed, 28 insertions(+), 56 deletions(-) (limited to 'src/components') diff --git a/src/components/alert.style.js b/src/components/alert.style.js index 081031d7..5881e833 100644 --- a/src/components/alert.style.js +++ b/src/components/alert.style.js @@ -17,9 +17,16 @@ export default { { directives: { background: '--text', - opacity: 0.8 + opacity: 0.5 } }, + { + parent: { + component: 'Alert' + }, + component: 'Border', + textColor: '--parent' + }, { variant: 'error', directives: { diff --git a/src/components/badge.style.js b/src/components/badge.style.js index 3ac7d8c0..37833cdb 100644 --- a/src/components/badge.style.js +++ b/src/components/badge.style.js @@ -6,8 +6,7 @@ export default { 'Icon' ], variants: { - normal: '.neutral', - notification: '.notification' + notification: '.-notification' }, defaultRules: [ { diff --git a/src/components/chat/chat.vue b/src/components/chat/chat.vue index b1e5468c..fc94cc71 100644 --- a/src/components/chat/chat.vue +++ b/src/components/chat/chat.vue @@ -61,7 +61,7 @@
{{ newMessageCount }}
diff --git a/src/components/chat_list_item/chat_list_item.vue b/src/components/chat_list_item/chat_list_item.vue index 69ad609b..cbae2d11 100644 --- a/src/components/chat_list_item/chat_list_item.vue +++ b/src/components/chat_list_item/chat_list_item.vue @@ -36,7 +36,7 @@ />
{{ chat.unread }}
diff --git a/src/components/menu_item.style.js b/src/components/menu_item.style.js index 6475395a..3c70bd9f 100644 --- a/src/components/menu_item.style.js +++ b/src/components/menu_item.style.js @@ -6,7 +6,8 @@ export default { 'Icon', 'Input', 'Border', - 'ButtonUnstyled' + 'ButtonUnstyled', + 'Badge' ], states: { hover: ':hover', diff --git a/src/components/mobile_nav/mobile_nav.vue b/src/components/mobile_nav/mobile_nav.vue index 489f3866..2e7590b9 100644 --- a/src/components/mobile_nav/mobile_nav.vue +++ b/src/components/mobile_nav/mobile_nav.vue @@ -20,7 +20,7 @@ />
@@ -37,14 +37,14 @@ />