Skip to content

Commit

Permalink
Merge pull request #4268 from alisman/homeHelp
Browse files Browse the repository at this point in the history
Add button on homepage to help docs
  • Loading branch information
alisman authored May 26, 2022
2 parents 0208a3f + 8179b79 commit b4759e6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/shared/components/query/CancerStudySelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,16 @@ export default class CancerStudySelector extends React.Component<
className={styles.cancerStudyListContainer}
data-test="cancerTypeListContainer"
>
<div className={styles.queryHelp}>
<a
href={
'https://docs.cbioportal.org/user-guide/by-page/#homepage'
}
target={'_blank'}
>
Help <i className={'fa fa-book'}></i>
</a>
</div>
<div
className="checkbox"
style={{ marginLeft: 19 }}
Expand Down
8 changes: 8 additions & 0 deletions src/shared/components/query/styles/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,17 @@ div.SelectedStudiesWindow {

div.cancerTypeListContainer,
div.cancerStudyListContainer {
position: relative;
overflow-y: scroll;
overflow-x: auto;
height: 100%;

.queryHelp {
position: absolute;
right: 25px;
top: 13px;
z-index: 100;
}
}

div.cancerStudyListContainer {
Expand Down
1 change: 1 addition & 0 deletions src/shared/components/query/styles/styles.module.scss.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ declare const styles: {
readonly "oqlNotice": string;
readonly "pendingMessage": string;
readonly "profileName": string;
readonly "queryHelp": string;
readonly "quickSelect": string;
readonly "radioRow": string;
readonly "searchTextInput": string;
Expand Down

0 comments on commit b4759e6

Please sign in to comment.