From f514d1c8721fd516d59ff23754bf1fafd3ee0d19 Mon Sep 17 00:00:00 2001 From: Pascal Wengerter Date: Fri, 17 Jun 2022 15:49:58 +0200 Subject: [PATCH] Redesign OcNotifications & add default position option --- .../enhancement-redesign-notifications | 7 +++ .../atoms/OcNotifications/OcNotifications.vue | 56 +++++++++--------- .../OcNotificationMessage.vue | 57 ++++++------------- 3 files changed, 53 insertions(+), 67 deletions(-) create mode 100644 changelog/unreleased/enhancement-redesign-notifications diff --git a/changelog/unreleased/enhancement-redesign-notifications b/changelog/unreleased/enhancement-redesign-notifications new file mode 100644 index 000000000..67512efc9 --- /dev/null +++ b/changelog/unreleased/enhancement-redesign-notifications @@ -0,0 +1,7 @@ +Enhancement: Redesign notifications + +We have redesigned the notifications component to fit the overal new look of the web frontend, e.g. adding shadow and rounded corners. +It can now also be rendered "unpositioned" instead of having it always stick to the top of the screen. + +https://github.com/owncloud/owncloud-design-system/pull/2210 +https://github.com/owncloud/web/issues/7082 diff --git a/src/components/atoms/OcNotifications/OcNotifications.vue b/src/components/atoms/OcNotifications/OcNotifications.vue index 7c1a756b2..5724c7edc 100644 --- a/src/components/atoms/OcNotifications/OcNotifications.vue +++ b/src/components/atoms/OcNotifications/OcNotifications.vue @@ -1,5 +1,5 @@ @@ -29,13 +29,13 @@ export default { required: false, default: "top-center", validator: value => { - return value.match(/(top-left|top-center|top-right)/) + return value.match(/(defaukt|top-left|top-center|top-right)/) }, }, }, computed: { classes() { - return `oc-notification oc-notification-${this.position}` + return `oc-notification-${this.position}` }, }, } @@ -44,21 +44,25 @@ export default {