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

Add close tray button to popover test. #5327

Merged
merged 1 commit into from
Jan 17, 2025
Merged

Conversation

dbatiste
Copy link
Contributor

@dbatiste dbatiste commented Jan 17, 2025

GAUD-7122

This PR adds the tray's Close button to the test popover component.

image

@dbatiste dbatiste requested a review from a team as a code owner January 17, 2025 20:09
Copy link
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-5327/

Note

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

@@ -67,8 +66,8 @@ class Popover extends PopoverMixin(LitElement) {
* @type {boolean}
*/
trapFocus: { type: Boolean, reflect: true, attribute: 'trap-focus' },
_hasFooter: { state: true },
_hasHeader: { state: true }
_hasFooterSlotContent: { state: true },
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just renamed these to make it clearer, since they are specifically in regard to whether the consumer has placed content in the header or footer slots.

Copy link
Contributor

@margaree margaree left a comment

Choose a reason for hiding this comment

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

Unrelated to this PR but should this line also have a check for changedProperties.has('mobileTrayLocation')?

@dbatiste
Copy link
Contributor Author

Unrelated to this PR but should this line also have a check for changedProperties.has('mobileTrayLocation')?

Oh yeah, thanks for pointing that out. I'll fix that in the next round of changes.

@dbatiste dbatiste merged commit ca930dd into main Jan 17, 2025
6 checks passed
@dbatiste dbatiste deleted the dbatiste/popover-tray-close branch January 17, 2025 21:05
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