Skip to content

Commit

Permalink
fix(pagination): contraste insuffisant (#2209)
Browse files Browse the repository at this point in the history
  • Loading branch information
Naorid authored Oct 24, 2023
1 parent f506985 commit c2a40ae
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function RechercherSolutionLayoutWithTabs(props: RechercherSolutionLayout
}
</Container>

<div>
<Container>
<Skeleton type="card" isLoading={isLoading} repeat={2} className={styles.listeSolutions}>
<>
<Tabs onTabChange={setCurrentTab} currentIndex={currentTab}>
Expand Down Expand Up @@ -102,7 +102,7 @@ export function RechercherSolutionLayoutWithTabs(props: RechercherSolutionLayout
/>
</div>
}
</div>
</Container>
</>
}
</>
Expand Down
16 changes: 10 additions & 6 deletions src/client/components/ui/Pagination/Pagination.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
@use "@styles/utilities-deprecated";
@use "@styles/utilities";

$pagination-current-page-color: utilities.$color-text-secondary;
$pagination-current-page-background-color: utilities.$color-background-secondary;
$pagination-disabled-page-color: utilities.$color-text-placeholder;
$pagination-available-page-color: utilities.$color-text-primary;

.pagination {
text-align: center;
Expand All @@ -7,7 +12,7 @@
align-items: center;

li {
color: utilities-deprecated.$color-on-surface;
color: $pagination-available-page-color;

a {
display: inline-flex;
Expand All @@ -34,14 +39,13 @@
padding: 0.5rem 1rem;

&[aria-disabled="true"] {
color: utilities-deprecated.$color-on-disabled;
color: $pagination-disabled-page-color;
pointer-events: none;
}

&[aria-current="true"] {
background-color: utilities-deprecated.$color-primary;
color: utilities-deprecated.$color-on-primary;
background-color: $pagination-current-page-background-color;
color: $pagination-current-page-color;
}
}

}
1 change: 0 additions & 1 deletion src/styles/theme/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
$color-primary: #566BB1;
$color-secondary: #18753C;
$color-tertiary: #ECECFF;
$white: #FFFFFF;

/* ***************
* System Colors
Expand Down

0 comments on commit c2a40ae

Please sign in to comment.