Skip to content

Commit

Permalink
Merge pull request #3039 from VictorHugoDuranS/dspace-7_2668
Browse files Browse the repository at this point in the history
Fix - Change color Contrast in cookie settings box
  • Loading branch information
tdonohue authored Jun 14, 2024
2 parents 9580b29 + 876ecb1 commit 09bf25a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/styles/_custom_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,6 @@
--ds-warning-bg: #{$ds-warning-bg};
--ds-danger-bg: #{$ds-danger-bg};

--green1: #1FB300; // This variable represents the success color for the Klaro cookie banner
--button-text-color-cookie: #333; // This variable represents the text color for buttons in the Klaro cookie banner
}
21 changes: 20 additions & 1 deletion src/styles/_global-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,25 @@ body {
z-index: 0;
}

.klaro
.cookie-notice {
.cn-buttons {
.cm-btn.cm-btn-success {
color: var(--button-text-color-cookie);
background-color: var(--green1);
}
.cm-btn.cm-btn-success.cm-btn-accept-all {
color: var(--button-text-color-cookie);
background-color: var(--green1);
}
}
}

.klaro .cookie-modal a, .klaro .context-notice a, .klaro .cookie-notice a
{
color: var(--green1);
}

.media-viewer
.change-gallery
.ngx-gallery
Expand Down Expand Up @@ -446,4 +465,4 @@ ngb-accordion {
.my-cs { margin-top: var(--ds-content-spacing); margin-bottom: var(--ds-content-spacing); }
.mt-ncs { margin-top: calc(var(--ds-content-spacing) * -1); }
.mb-ncs { margin-bottom: calc(var(--ds-content-spacing) * -1); }
.my-ncs { margin-top: calc(var(--ds-content-spacing) * -1); margin-bottom: calc(var(--ds-content-spacing) * -1); }
.my-ncs { margin-top: calc(var(--ds-content-spacing) * -1); margin-bottom: calc(var(--ds-content-spacing) * -1); }

0 comments on commit 09bf25a

Please sign in to comment.