+
({
});
export const SidePanel: StoryObj = {
- render: NestedSidePanelTemplate,
+ render: InlineSidePanelTemplate,
};
export const SidePanelSmall: StoryObj = {
- render: NestedSidePanelTemplate,
+ render: InlineSidePanelTemplate,
play: removeFocusOutline,
args: {
clrSidePanelOpen: true,
@@ -113,7 +113,7 @@ export const SidePanelSmall: StoryObj = {
};
export const SidePanelMedium: StoryObj = {
- render: NestedSidePanelTemplate,
+ render: InlineSidePanelTemplate,
play: removeFocusOutline,
args: {
clrSidePanelOpen: true,
@@ -125,7 +125,7 @@ export const SidePanelMedium: StoryObj = {
};
export const SidePanelLarge: StoryObj = {
- render: NestedSidePanelTemplate,
+ render: InlineSidePanelTemplate,
play: removeFocusOutline,
args: {
clrSidePanelOpen: true,
@@ -137,7 +137,7 @@ export const SidePanelLarge: StoryObj = {
};
export const SidePanelExtraLarge: StoryObj = {
- render: NestedSidePanelTemplate,
+ render: InlineSidePanelTemplate,
play: removeFocusOutline,
args: {
clrSidePanelOpen: true,
@@ -149,7 +149,7 @@ export const SidePanelExtraLarge: StoryObj = {
};
export const SidePanelWithoutBackdrop: StoryObj = {
- render: NestedSidePanelTemplate,
+ render: InlineSidePanelTemplate,
play: removeFocusOutline,
args: {
clrSidePanelOpen: true,
@@ -161,7 +161,7 @@ export const SidePanelWithoutBackdrop: StoryObj = {
};
export const SidePanelAlternateClose: StoryObj = {
- render: NestedSidePanelTemplate,
+ render: InlineSidePanelTemplate,
play: removeFocusOutline,
args: {
clrSidePanelOpen: true,
@@ -178,7 +178,7 @@ export const SidePanelAlternateClose: StoryObj = {
};
export const SidePanelPinnable: StoryObj = {
- render: NestedSidePanelTemplate,
+ render: InlineSidePanelTemplate,
play: removeFocusOutline,
args: {
clrSidePanelOpen: true,
@@ -191,7 +191,7 @@ export const SidePanelPinnable: StoryObj = {
};
export const SidePanelFullScreen: StoryObj = {
- render: NestedSidePanelTemplate,
+ render: InlineSidePanelTemplate,
play: removeFocusOutline,
args: {
clrSidePanelOpen: true,
diff --git a/projects/angular/src/modal/_modal.clarity.scss b/projects/angular/src/modal/_modal.clarity.scss
index ba72ad58c0..8eb9ce78dc 100644
--- a/projects/angular/src/modal/_modal.clarity.scss
+++ b/projects/angular/src/modal/_modal.clarity.scss
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2024 Broadcom. All Rights Reserved.
- * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
@@ -30,10 +30,11 @@
padding-right: modal-variables.$clr-modal-xl-width !important;
}
- .modal-host {
- border: 1px dashed hotpink;
+ .clr-modal-host {
overflow: hidden;
- .modal {
+ position: relative;
+ .modal,
+ .modal-backdrop {
position: absolute;
}
}
diff --git a/projects/angular/src/modal/modal-host.directive.ts b/projects/angular/src/modal/modal-host.directive.ts
new file mode 100644
index 0000000000..5828aa52b4
--- /dev/null
+++ b/projects/angular/src/modal/modal-host.directive.ts
@@ -0,0 +1,14 @@
+/*
+ * Copyright (c) 2016-2024 Broadcom. All Rights Reserved.
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
+ * This software is released under MIT license.
+ * The full license information can be found in LICENSE in the root directory of this project.
+ */
+
+import { Directive } from '@angular/core';
+
+@Directive({
+ selector: '[clrModalHost]',
+ host: { '[class.clr-modal-host]': 'true' },
+})
+export class ClrModalHostDirective {}
diff --git a/projects/angular/src/modal/modal.html b/projects/angular/src/modal/modal.html
index 9726f4aec3..cdb637287e 100644
--- a/projects/angular/src/modal/modal.html
+++ b/projects/angular/src/modal/modal.html
@@ -58,6 +58,6 @@
{{commonStrings.keys.modalContentEnd}}