Skip to content

Commit

Permalink
DATAP-1612 bug fixes (#567)
Browse files Browse the repository at this point in the history
* updated styling for Tour Button

* removed spacing between Show More/Less button text and icon

* updated pagination buttons to use latest styling from design system

---------

Co-authored-by: Chanel Henley <[email protected]>
  • Loading branch information
2 people authored and flacoman91 committed Dec 17, 2024
1 parent 47fe218 commit 264c3db
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 22 deletions.
4 changes: 2 additions & 2 deletions dist/ccdb5.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ccdb5.css.map

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions dist/ccdb5.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ccdb5.js.map

Large diffs are not rendered by default.

12 changes: 4 additions & 8 deletions src/components/List/Pagination/Pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,16 @@ export const Pagination = () => {
onClick={() => prevPage()}
disabled={page <= 1}
>
<span className="a-btn__icon a-btn__icon--on-left">
{getIcon('left')}
</span>
Previous
{getIcon('left')}
<span>Previous</span>
</button>
<button
className="a-btn m-pagination__btn-next"
onClick={() => nextPage()}
disabled={page >= total}
>
Next
<span className="a-btn__icon a-btn__icon--on-right">
{getIcon('right')}
</span>
<span>Next</span>
{getIcon('right')}
</button>
<div className="m-pagination__form">
<label className="m-pagination__label">Page {page}</label>
Expand Down
3 changes: 2 additions & 1 deletion src/components/Tour/TourButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export const TourButton = () => {

return (
<button onClick={() => dispatch(tourShown())} className="a-btn tour-button">
{getIcon('help-round')} Take a tour
{getIcon('help-round')}
<span>Take a tour</span>
</button>
);
};
4 changes: 4 additions & 0 deletions src/components/Trends/TrendDepthToggle/TrendDepthToggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
button {
margin: 5px;
color: var(--pacific-dark);

&.a-btn {
gap: 0;
}
}

span {
Expand Down

0 comments on commit 264c3db

Please sign in to comment.