Skip to content

Commit

Permalink
Adjust buttons within pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
mdragon committed Dec 20, 2024
1 parent 9dea889 commit 97ba6d3
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions frontend/src/styles/_uswds-theme-custom-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -343,3 +343,38 @@ i.e.
padding-top: calc(1rem + 3vw);
padding-bottom: calc(1rem + 3vw);
}

// truss adds usa-button classes and button elements in the pagination component
// overriding button styles for pagination
.usa-pagination__button.usa-button,
button.usa-pagination__button.usa-button {
align-items: center;
background-color: color("mint-5");
border-width: 0px;
color: color("gray-warm-90");
display: inline-flex;
justify-content: center;
text-decoration: none;
padding: units(1);
width: 100%;

&:hover,
&:focus,
&:active {
color: white;
background-color: color("mint-70");
}
}

.usa-pagination button.usa-button.usa-current,
.usa-pagination .usa-button.usa-current {
color: white;
background-color: color("mint-40");

&:hover,
&:focus,
&:active {
background-color: color("mint-80");
color: white;
}
}

0 comments on commit 97ba6d3

Please sign in to comment.