Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
255834e
Bump LG packages
kraenhansen Oct 3, 2025
0847a8a
Remove patch-leafygreen-button
kraenhansen Sep 30, 2025
8160e7f
Fix Button / IconButton links
kraenhansen Sep 30, 2025
485cd4a
Fix ActionButton prop types
kraenhansen Sep 30, 2025
e19dc29
Remove defaultValue workaround
kraenhansen Sep 30, 2025
6ca471f
Fix SmallIconButton props
kraenhansen Sep 30, 2025
58a9383
Fix ChevronCollapse by re-exporting LGGlyph
kraenhansen Sep 30, 2025
b13425e
Fix Modal to adopt LG Modal v20
kraenhansen Sep 30, 2025
5443532
Fix TabNavBar to adopt LG Tabs v17
kraenhansen Sep 30, 2025
47f3edc
TEMP: Working around https://jira.mongodb.org/browse/LG-5461
kraenhansen Sep 30, 2025
e929729
Fix Code v18 removing copyable
kraenhansen Sep 30, 2025
3b27de2
TEMP work around https://jira.mongodb.org/browse/LG-5587
kraenhansen Sep 30, 2025
ad46d6e
Fix connection-form adopt LG Tabs v17
kraenhansen Sep 30, 2025
df486a2
Fix connection-form to work around LG Modal v20
kraenhansen Sep 30, 2025
d1cb27d
Fix compass-collection to work around Code v18 removing copyable
kraenhansen Oct 3, 2025
33e0ce8
Fix incorrect React.Ref type argument in generative-ai
kraenhansen Sep 30, 2025
7866f95
Update generative-ai to adopt marketing-modal v7
kraenhansen Sep 30, 2025
e1a1791
Workaround for React.ComponentProps<typeof Button> no longer working
kraenhansen Sep 30, 2025
66d92e0
Fix compass-import-export to work around Code v18 removing copyable
kraenhansen Sep 30, 2025
7ccca32
Fix compass-import-export to work around LG modal v20
kraenhansen Sep 30, 2025
28d11e8
TEMP work around https://jira.mongodb.org/browse/LG-5590
kraenhansen Oct 1, 2025
b28185c
TEMP work around https://jira.mongodb.org/browse/LG-5589
kraenhansen Oct 1, 2025
c4c8cb5
Update compass-welcome to adopt marketing-modal v7
kraenhansen Oct 1, 2025
3a57c16
Update compass-explain-plan to LG Modal v20
kraenhansen Oct 1, 2025
8f5fddb
Update export-to-language to LG Code v18
kraenhansen Oct 1, 2025
30cf10d
Update query-bar to LG Code v18
kraenhansen Oct 1, 2025
b635923
Fix issue passing Popover ref into IconButton
kraenhansen Oct 1, 2025
1b0fcb6
Add autoFocus prop to compass-editor
kraenhansen Oct 1, 2025
64b8898
Fix compass-crud to adopt LG modal v20
kraenhansen Oct 1, 2025
f9683a1
Update compass-schema to LG Modal v20
kraenhansen Oct 1, 2025
4ed8599
Add workaround for jsdom missing HTMLDialogElement support
kraenhansen Oct 2, 2025
4a95167
Print progress in changed script
kraenhansen Oct 2, 2025
9250c6e
Pin nwsapi at 2.2.12 to work around failures to parse colons in test-…
kraenhansen Oct 7, 2025
aa9fb26
Assert functional rename of KMS provider
kraenhansen Oct 7, 2025
37b3d4c
Work around change in LG "modal" no longer removing dom elements when…
kraenhansen Oct 7, 2025
7167e52
Fix type error in e2e-tests
kraenhansen Oct 7, 2025
4d1e07f
Update generative-ai to adopt LG modal v20
kraenhansen Oct 7, 2025
264a3cd
Work around LG-5601
kraenhansen Oct 7, 2025
bd3e00a
Fix fullScreen prop on derived Modal
kraenhansen Oct 7, 2025
fdfc6ab
Remove use of deprecated backdropClassName
kraenhansen Oct 7, 2025
ef97032
Remove workaround for MarketingModal button disabling
kraenhansen Oct 7, 2025
105301d
Fix check failure in guide-cue spec
kraenhansen Oct 7, 2025
abe1bb0
fixup! Work around LG-5601
kraenhansen Oct 7, 2025
2f2b35d
Fix remaining components tests
kraenhansen Oct 7, 2025
0060b66
Bump LG packages again
kraenhansen Oct 8, 2025
ca6e979
Revert workaround for LG-5589
kraenhansen Oct 8, 2025
357fdc0
Revert workaround for LG-5593
kraenhansen Oct 8, 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