Skip to content

Commit 86ca485

Browse files
feat(Modal): add sticky header and footer on scroll
1 parent 87dd87b commit 86ca485

File tree

7 files changed

+961
-372
lines changed

7 files changed

+961
-372
lines changed

packages/react/src/components/modal/modal-dialog.test.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,11 @@ describe('Modal-Dialog', () => {
119119

120120
expect(baseElement).toMatchSnapshot();
121121
});
122+
123+
test('Matches snapshot (custom footer content)', () => {
124+
const customContent = <p>Custom content</p>;
125+
const { baseElement } = renderModal({ isOpen: true, footerContent: customContent });
126+
127+
expect(baseElement).toMatchSnapshot();
128+
});
122129
});

0 commit comments

Comments
 (0)