Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
6cb5007
Bump LG packages
kraenhansen Oct 14, 2025
59b71a9
Remove patch-leafygreen-button
kraenhansen Sep 30, 2025
b36f73c
Fix Button / IconButton links
kraenhansen Sep 30, 2025
d13279d
Fix ActionButton prop types
kraenhansen Sep 30, 2025
2645b9e
Remove defaultValue workaround
kraenhansen Sep 30, 2025
c51364a
Fix SmallIconButton props
kraenhansen Sep 30, 2025
eca421d
Fix Modal to adopt LG Modal v20
kraenhansen Sep 30, 2025
3be92cf
Fix TabNavBar to adopt LG Tabs v17
kraenhansen Sep 30, 2025
85b3cf1
TEMP: Working around https://jira.mongodb.org/browse/LG-5461
kraenhansen Sep 30, 2025
29695d2
TEMP work around https://jira.mongodb.org/browse/LG-5587
kraenhansen Sep 30, 2025
9f1d5a8
Fix connection-form adopt LG Tabs v17
kraenhansen Sep 30, 2025
16ef002
Fix connection-form to work around LG Modal v20
kraenhansen Sep 30, 2025
dfbc6aa
Fix incorrect React.Ref type argument in generative-ai
kraenhansen Sep 30, 2025
37deb65
Update generative-ai to adopt marketing-modal v7
kraenhansen Sep 30, 2025
9429196
Workaround for React.ComponentProps<typeof Button> no longer working
kraenhansen Sep 30, 2025
fe66f3e
Fix compass-import-export to work around LG modal v20
kraenhansen Sep 30, 2025
1634ca8
TEMP work around https://jira.mongodb.org/browse/LG-5590
kraenhansen Oct 1, 2025
357a853
TEMP work around https://jira.mongodb.org/browse/LG-5589
kraenhansen Oct 1, 2025
ec1e2ad
Update compass-welcome to adopt marketing-modal v7
kraenhansen Oct 1, 2025
0d7a64b
Update compass-explain-plan to LG Modal v20
kraenhansen Oct 1, 2025
338f296
Fix issue passing Popover ref into IconButton
kraenhansen Oct 1, 2025
83cc45b
Add autoFocus prop to compass-editor
kraenhansen Oct 1, 2025
f7dc709
Fix compass-crud to adopt LG modal v20
kraenhansen Oct 1, 2025
f188ea7
Update compass-schema to LG Modal v20
kraenhansen Oct 1, 2025
680b661
Add workaround for jsdom missing HTMLDialogElement support
kraenhansen Oct 2, 2025
50634b7
Print progress in changed script
kraenhansen Oct 2, 2025
aa3d369
Pin nwsapi at 2.2.12 to work around failures to parse colons in test-…
kraenhansen Oct 14, 2025
199bb7e
Assert functional rename of KMS provider
kraenhansen Oct 7, 2025
6c0e074
Work around change in LG "modal" no longer removing dom elements when…
kraenhansen Oct 7, 2025
4aad266
Fix type error in e2e-tests
kraenhansen Oct 7, 2025
71e2705
Update generative-ai to adopt LG modal v20
kraenhansen Oct 7, 2025
5137845
Fix fullScreen prop on derived Modal
kraenhansen Oct 7, 2025
b0361f0
Remove use of deprecated backdropClassName
kraenhansen Oct 7, 2025
bca3e8a
Remove workaround for MarketingModal button disabling
kraenhansen Oct 7, 2025
5fb1130
Fix check failure in guide-cue spec
kraenhansen Oct 7, 2025
84b5697
Fix remaining components tests
kraenhansen Oct 7, 2025
509a636
Revert workaround for LG-5589
kraenhansen Oct 8, 2025
8cabd77
Revert workaround for LG-5593
kraenhansen Oct 8, 2025
5b27667
Use named over default exports
kraenhansen Oct 14, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,25 @@ Object.assign(tabbable, {
origTabbable.isTabbable(node, { ...options, displayCheck: 'none' }),
});

// Workaround for missing HTMLDialogElement in jsdom
// See https://github.com/jsdom/jsdom/issues/3294

Object.assign(HTMLDialogElement.prototype, {
show() {
this.open = true;
this.style.display = '';
},
showModal() {
this.open = true;
this.style.display = '';
},
close(returnValue) {
this.open = false;
this.returnValue = returnValue;
this.style.display = 'none';
},
});

// leafygreen (through `clipboard` library) uses deprecated API check that is
// not working in jsdom if copy / paste APIs are supported
if (!window.document.queryCommandSupported) {
Expand Down
Loading