From 38e91171e6a5a03ec59f65f7c18baec42f296ca7 Mon Sep 17 00:00:00 2001 From: Lungan Catalin <98550729+Cata1989@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:13:52 +0300 Subject: [PATCH] refactor(Notification): use CSS logical properties instead of physical values (#1111) --- .../notification/_storybook/bq-notification.stories.tsx | 4 ++-- .../beeq/src/components/notification/bq-notification.tsx | 8 ++++---- .../src/components/notification/scss/bq-notification.scss | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/beeq/src/components/notification/_storybook/bq-notification.stories.tsx b/packages/beeq/src/components/notification/_storybook/bq-notification.stories.tsx index 379e98c5c..a77b90db9 100644 --- a/packages/beeq/src/components/notification/_storybook/bq-notification.stories.tsx +++ b/packages/beeq/src/components/notification/_storybook/bq-notification.stories.tsx @@ -188,11 +188,11 @@ export const Stacked: Story = { }; return html` -

+

The notification component creates and manages the notification portal, a fixed-position element that allows for stacking multiple notifications vertically.

-

+

Only one instance of the notification portal exists and it is added or removed from the DOM as required when notifications are displayed.

diff --git a/packages/beeq/src/components/notification/bq-notification.tsx b/packages/beeq/src/components/notification/bq-notification.tsx index e3b9032c8..c0b643f99 100644 --- a/packages/beeq/src/components/notification/bq-notification.tsx +++ b/packages/beeq/src/components/notification/bq-notification.tsx @@ -259,7 +259,7 @@ export class BqNotification { {/* CLOSE BUTTON */} {!this.disableClose && ( this.hide()} @@ -273,7 +273,7 @@ export class BqNotification { class={{ '!hidden': this.hideIcon, [`color-${this.type}`]: true, // The icon color will be based on the type (info, success, warning, error) - 'notification--icon mr-xs flex text-left align-top': true, + 'notification--icon me-xs flex text-left align-top': true, }} part="icon-outline" > @@ -282,8 +282,8 @@ export class BqNotification { {/* MAIN */} -