Skip to content

Commit

Permalink
fix: Opt-out dialog is vertically cut off if height is set to auto (#506
Browse files Browse the repository at this point in the history
)

fix: Opt-out dialog is vertically cut off if height is set to auto
  • Loading branch information
ataromoku committed Jan 27, 2025
1 parent c70183b commit e31f526
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/opt-in-flyout/flyout-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,19 @@ class FlyoutImplementation extends composeMixins(
heading1Styles,
css`
:host {
height: var(--d2l-flyout-custom-element-height, 100%);
height: var(--d2l-flyout-custom-element-height, auto);
overflow: hidden;
pointer-events: none;
position: absolute;
width: 100%;
}
:host([opened]) {
background-color: rgba(255, 255, 255, 0.7);
height: 100%;
pointer-events: auto;
}
#flyout {
background-color: white;
border-bottom: 1px solid var(--d2l-color-mica);
Expand All @@ -62,7 +68,7 @@ class FlyoutImplementation extends composeMixins(
overflow: visible;
padding-bottom: 2rem;
pointer-events: auto;
position: var(--d2l-flyout-custom-element-position, absolute);
position: var(--d2l-flyout-custom-element-position, relative);
top: var(--d2l-flyout-custom-element-top, 0);
width: 100%;
z-index: var(--d2l-flyout-custom-element-z-index, 900);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e31f526

Please sign in to comment.