Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Opt-out dialog is vertically cut off if height is set to auto #506

Merged
merged 8 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious what the semi-transparency is being used for here.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see what this is being used for now. Follow-up question, do you know why this is using white as opposed to regolith like d2l-backdrop. I see the transparency is at least consistent.

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.
Loading