Skip to content

Commit eb1b807

Browse files
committed
Change the color of the "Load more" button
1 parent 9299b37 commit eb1b807

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ seqInfoSize | used in results, it changes the size of the text `number o
129129
searchButtonColor | change the color of the `Search` button |
130130
clearButtonColor | change the color of the `Clear` button |
131131
uploadButtonColor | change the color of the `Upload file` button |
132+
loadMoreButtonColor | change the color of the `Load more` button |
132133

133134
## Developer details
134135

src/containers/SequenceSearch/components/Results/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class Results extends React.Component {
4141
fontSize: this.props.customStyle && this.props.customStyle.h3Size ? this.props.customStyle.h3Size : "",
4242
fontWeight: "300",
4343
};
44+
const loadMoreButtonColor = this.props.customStyle && this.props.customStyle.loadMoreButtonColor ? this.props.customStyle.loadMoreButtonColor : "";
4445

4546
// exact match URS ids
4647
const exactMatch = this.props.exactMatch;
@@ -175,7 +176,7 @@ class Results extends React.Component {
175176
<ul key={`${entry}_${index}`}><Hit entry={entry} customStyle={this.props.customStyle} databases={this.props.databases} exactMatchUrsId={exactMatchUrsId}/></ul>
176177
)) }
177178
<div className="small-12 columns">
178-
{this.props.status === "loading" ? <i className="animated infinite flash">...</i> : (this.props.status === "success" || this.props.status === "partial_success") && (this.props.entries.length < this.props.hitCount) && (<a className="button small" onClick={this.props.onLoadMore} target="_blank">Load more</a>)}
179+
{this.props.status === "loading" ? <i className="animated infinite flash">...</i> : (this.props.status === "success" || this.props.status === "partial_success") && (this.props.entries.length < this.props.hitCount) && (<a className="button small" onClick={this.props.onLoadMore} target="_blank" style={{background: loadMoreButtonColor}}>Load more</a>)}
179180
</div>
180181
</section>
181182
</div>

0 commit comments

Comments
 (0)