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 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[terra-collapsible-menu-view] Flicker issue when wrapped with clinica…
…l header (#1965)
- Loading branch information
1 parent
12849a0
commit 5ed1966
Showing
17 changed files
with
66 additions
and
3 deletions.
There are no files selected for viewing
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
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
Binary file added
BIN
+7.16 KB
...cal-lowlight-theme/en/chrome_small/file-path-spec/add_file_path_with_header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.83 KB
...linical-lowlight-theme/en/chrome_small/file-path-spec/file_path_with_header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.68 KB
...ical-lowlight-theme/en/chrome_tiny/file-path-spec/add_file_path_with_header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.77 KB
...clinical-lowlight-theme/en/chrome_tiny/file-path-spec/file_path_with_header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.74 KB
...orion-fusion-theme/en/chrome_small/file-path-spec/add_file_path_with_header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.17 KB
...nce/orion-fusion-theme/en/chrome_small/file-path-spec/file_path_with_header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.26 KB
.../orion-fusion-theme/en/chrome_tiny/file-path-spec/add_file_path_with_header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.11 KB
...ence/orion-fusion-theme/en/chrome_tiny/file-path-spec/file_path_with_header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.2 KB
...erra-default-theme/en/chrome_small/file-path-spec/add_file_path_with_header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.82 KB
...ce/terra-default-theme/en/chrome_small/file-path-spec/file_path_with_header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.72 KB
...terra-default-theme/en/chrome_tiny/file-path-spec/add_file_path_with_header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.76 KB
...nce/terra-default-theme/en/chrome_tiny/file-path-spec/file_path_with_header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
32 changes: 32 additions & 0 deletions
32
.../terra-framework-docs/src/terra-dev-site/test/file-path/FilePathwithActionHeader.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,32 @@ | ||
/* eslint-disable react/forbid-dom-props */ | ||
import React, { useState } from 'react'; | ||
import FilePath from 'terra-file-path'; | ||
import ActionHeader from 'terra-action-header'; | ||
|
||
const FilePathwithActionHeader = () => { | ||
const path = [ | ||
{ | ||
key: 'link-0', | ||
text: 'Link 0', | ||
}, | ||
{ | ||
key: 'link-1', | ||
text: 'Link 1', | ||
}, | ||
]; | ||
|
||
const [items, setItems] = useState(path); | ||
|
||
const handleClick = () => { | ||
setItems([...items, { key: `link${items.length}`, text: `Link${items.length}` }]); | ||
}; | ||
|
||
return ( | ||
<> | ||
<button id="add-path" type="button" onClick={handleClick}>Click Me</button> | ||
<ActionHeader text={<FilePath items={items} />} /> | ||
</> | ||
); | ||
}; | ||
|
||
export default FilePathwithActionHeader; |