This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sugan G
authored and
Sugan G
committed
Feb 21, 2024
1 parent
3313eb9
commit 79ad103
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
.../terra-core-docs/src/terra-dev-site/test/section-header/StickyTitleSectionHeader.test.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* eslint-disable react/forbid-dom-props */ | ||
import React from 'react'; | ||
import SectionHeader from 'terra-section-header'; | ||
|
||
export default () => ( | ||
<div style={{ | ||
width: '400px', height: '200px', background: 'gray', margin: '10px', overflow: 'scroll', | ||
}} | ||
> | ||
<div style={{ width: '600px', height: '400px' }}> | ||
<SectionHeader | ||
text="Closed Section Header 1" | ||
isTitleSticky | ||
onClick={() => {}} | ||
/> | ||
<br /> | ||
<SectionHeader | ||
text="Closed Section Header 2" | ||
isTitleSticky | ||
onClick={() => {}} | ||
/> | ||
<br /> | ||
<SectionHeader | ||
text="Section Header 3" | ||
isTitleSticky | ||
/> | ||
</div> | ||
</div> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters