Skip to content

Commit

Permalink
Merge pull request #335 from Vizzuality/fix-scroll
Browse files Browse the repository at this point in the history
fix scroll anchor for load more button
  • Loading branch information
tsubik committed Aug 4, 2020
2 parents ed4df66 + 2eef87e commit 51a27e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/cclow/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,8 @@ $button-border-width: 4px;
vertical-align: middle;
}
}

&.no-anchor {
overflow-anchor: none;
}
}
2 changes: 1 addition & 1 deletion app/javascript/components/pages/cclow/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ class List extends Component {
</ul>
{hasMore && (
<div className={`column load-more-container${!isMobile ? ' is-offset-5' : ''}`}>
<button type="button" className="button is-primary load-more-btn" onClick={this.handleLoadMore}>
<button type="button" className="button is-primary no-anchor load-more-btn" onClick={this.handleLoadMore}>
Load 10 more entries
</button>
</div>
Expand Down

0 comments on commit 51a27e0

Please sign in to comment.