Skip to content

Commit

Permalink
Pagination NLDS
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Oct 13, 2023
1 parent 1a40ac5 commit 3334c8d
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- **Version 2.2 (breaking changes from 2.1.x)**

- 2.2.15: Added more NLDS options to Pagination.
- 2.2.13/2.2.14:
- Updated Textarea and all Input components to allow aria-label.
- Updated Select components.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@conduction/components",
"version": "2.2.14",
"version": "2.2.15",
"description": "React (Gatsby) components used within the Conduction Skeleton Application (and its implementations)",
"main": "lib/index.js",
"scripts": {
Expand Down
46 changes: 41 additions & 5 deletions src/components/Pagination/Pagination.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,30 @@
--conduction-pagination-item-border-style: unset;
--conduction-pagination-item-border-color: unset;

/* --conduction-pagination-navigation-button-background-color: #4376fc; */
/* --conduction-pagination-navigation-button-color: #ffffff; */
/* --conduction-pagination-navigation-button-border-width: 1px; */
/* --conduction-pagination-navigation-button-border-style: solid; */
/* --conduction-pagination-navigation-button-border-color: #4376fc; */
/* --conduction-pagination-navigation-button-border-radius: 1px; */
--conduction-pagination-navigation-button-padding-inline-start: 8px;
--conduction-pagination-navigation-button-padding-inline-end: 8px;
--conduction-pagination-navigation-button-padding-block-start: 0px;
--conduction-pagination-navigation-button-padding-block-end: 0px;

--conduction-pagination-disabled-color: #d1d1d1;
--conduction-pagination-disabled-background-color: #fefefe;
--conduction-pagination-navigation-button-disabled-color: #d1d1d1;
--conduction-pagination-navigation-button-disabled-background-color: #fefefe;
/* --conduction-pagination-navigation-button-disabled-border-width: 1px; */
/* --conduction-pagination-navigation-button-disabled-border-style: solid; */
/* --conduction-pagination-navigation-button-disabled-border-color: #4376fc; */
/* --conduction-pagination-navigation-button-disabled-border-radius: 1px; */

--conduction-pagination-navigation-button-hover-color: #d1d1d1;
--conduction-pagination-navigation-button-hover-background-color: #fefefe;
/* --conduction-pagination-navigation-button-hover-border-width: 1px; */
/* --conduction-pagination-navigation-button-hover-border-style: solid; */
/* --conduction-pagination-navigation-button-hover-border-color: #4376fc; */
/* --conduction-pagination-navigation-button-hover-border-radius: 1px; */

--conduction-pagination-current-page-background-color: #4376fc;
--conduction-pagination-current-page-color: #ffffff;
Expand Down Expand Up @@ -97,9 +114,22 @@
cursor: not-allowed;
}

.container > li.disabled > a {
color: var(--conduction-pagination-disabled-color);
background-color: var(--conduction-pagination-disabled-background-color);
.container > li.disabled > a > .button {
color: var(--conduction-pagination-navigation-button-disabled-color) !important;
background-color: var(--conduction-pagination-navigation-button-disabled-background-color) !important;
border-width: var(--conduction-pagination-navigation-button-disabled-border-width, var(--utrecht-button-border-width));
border-style: var(--conduction-pagination-navigation-button-disabled-border-style, var(--utrecht-button-border-style));
border-color: var(--conduction-pagination-navigation-button-disabled-border-color, var(--utrecht-button-border-color));
border-radius: var(--conduction-pagination-navigation-button-disabled-border-radius, var(--utrecht-button-border-radius));
}

.container > li:hover:not(.disabled) > a > .button {
color: var(--conduction-pagination-navigation-button-hover-color) !important;
background-color: var(--conduction-pagination-navigation-button-hover-background-color) !important;
border-width: var(--conduction-pagination-navigation-button-hover-border-width, var(--utrecht-button-border-width));
border-style: var(--conduction-pagination-navigation-button-hover-border-style, var(--utrecht-button-border-style));
border-color: var(--conduction-pagination-navigation-button-hover-border-color, var(--utrecht-button-border-color));
border-radius: var(--conduction-pagination-navigation-button-hover-border-radius, var(--utrecht-button-border-radius));
}

.container > li:hover:not(.disabled):not(.currentPage) {
Expand All @@ -115,6 +145,12 @@
}

.button {
background-color: var(--conduction-pagination-navigation-button-background-color, var(--utrecht-button-background-color)) !important;
color: var(--conduction-pagination-navigation-button-color, var(--utrecht-button-color)) !important;
border-width: var(--conduction-pagination-navigation-button-border-width, var(--utrecht-button-border-width));
border-style: var(--conduction-pagination-navigation-button-border-style, var(--utrecht-button-border-style));
border-color: var(--conduction-pagination-navigation-button-border-color, var(--utrecht-button-border-color));
border-radius: var(--conduction-pagination-navigation-button-border-radius, var(--utrecht-button-border-radius));
padding-inline-start: var(--conduction-pagination-navigation-button-padding-inline-start) !important;
padding-inline-end: var(--conduction-pagination-navigation-button-padding-inline-end) !important;
padding-block-start: var(--conduction-pagination-navigation-button-padding-block-start) !important;
Expand Down

0 comments on commit 3334c8d

Please sign in to comment.