Skip to content

Update d2l-alert-toast to use popover - #7338

Open
dbatiste wants to merge 7 commits into
mainfrom
dbatiste/alert-toast-popover
Open

Update d2l-alert-toast to use popover#7338
dbatiste wants to merge 7 commits into
mainfrom
dbatiste/alert-toast-popover

Conversation

@dbatiste

@dbatiste dbatiste commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

GAUD-10337

This PR updates d2l-alert-toast to use native popover if supported.

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Thanks for the PR! 🎉

We've deployed an automatic preview for this PR - you can see your changes here:

URL https://live.d2l.dev/prs/BrightspaceUI/core/pr-7338/

Note

The build needs to finish before your changes are deployed.
Changes to the PR will automatically update the instance.

dbatiste and others added 3 commits August 7, 2026 18:14
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@dbatiste

dbatiste commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

All the visual-diffs are tiny pixel diffs on some corners, and overlapping shadows. Seems like it might be something different with how these are rendered on the top layer... I think the position should be identical.

@dbatiste
dbatiste marked this pull request as ready for review August 7, 2026 22:44
@dbatiste
dbatiste requested a review from a team as a code owner August 7, 2026 22:44
right: 0;
width: 100%;
}
.d2l-alert-toast-container-not-popover {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Wondering if we might want to have 2 copies of all (or most) of the alert-toast vdiffs, one for popover on and one for off?

Reasoning:

  • There should be no vdiffs for the OFF case with this PR
  • We'd catch any future regressions to the OFF case

Of course having double the vdiffs isn't amazing, but it would just be temporary for the next year or two until popover is supported everywhere.

if (newOpen) {

// Clean-up when removing GAUD-10337-use-alert-toast-popover
if (alertToastPopoverFlag) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Shouldn't these two ifs be if (usePopover) { and not just the flag? (then there's no cleaning them up with the flag, but only when popover is supported everywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants