Skip to content

Commit

Permalink
Update navButtons
Browse files Browse the repository at this point in the history
Next buttons should always be on the right, even when it's the only button.
  • Loading branch information
mel-miller committed Oct 10, 2023
1 parent 9b520cb commit 8113759
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/navButtons/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const NavButtons = ({
>
{prev && (
<ul className="pagination pager-guides">
<li>
<li className="pagination__prev">
<Link to={prev} rel="prev" className="pds-button">
<Icon iconName="angleLeft"></Icon>
{prevTitle}
Expand All @@ -28,8 +28,8 @@ const NavButtons = ({
)}
{next && (
<ul className="pagination pager-guides">
<li>
<Link to={next} rel="prev" className="pds-button">
<li className="pagination__next">
<Link to={next} rel="next" className="pds-button">
{nextTitle}
<Icon iconName="angleRight"></Icon>
</Link>
Expand Down
5 changes: 5 additions & 0 deletions src/components/navButtons/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
ul.pagination {
list-style-type: none;
padding: 0;
width: 100%;
}

li.pagination__next {
float: right;
}

0 comments on commit 8113759

Please sign in to comment.