Skip to content

Commit

Permalink
Merge pull request #4635 from nextcloud-libraries/fix/4617/datepicker…
Browse files Browse the repository at this point in the history
…-darkmode-stable7

[stable7] fix: invert datepicker buttons on dark mode
  • Loading branch information
Pytal authored Oct 11, 2023
2 parents 1b10b1c + a7e4d03 commit 5e04d9f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 25 deletions.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion src/components/NcDatetimePicker/chevron-left-light.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/components/NcDatetimePicker/chevron-right-light.svg

This file was deleted.

36 changes: 15 additions & 21 deletions src/components/NcDatetimePicker/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -308,13 +308,19 @@ $cell_height: 32px;
justify-content: center;
width: $cell_height;
padding: 0; // leave the centering to flex
background-repeat: no-repeat;
background-size: 16px;
background-position: center;

// Hide original icons
> i {
display: none;
// Hide original icons
&::after, &::before {
content: none;
}
background-repeat: no-repeat;
background-size: 16px;
background-position: center;
filter: var(--background-invert-if-dark);
display: inline-block;
width: 32px;
height: 32px;
}
}
&.mx-btn-text {
Expand All @@ -326,32 +332,20 @@ $cell_height: 32px;
display: flex;
}

.mx-btn-icon-double-left {
.mx-btn-icon-double-left > i {
background-image: url('./chevron-double-left.svg');
body.theme--dark & {
background-image: url('./chevron-double-left-light.svg');
}
}

.mx-btn-icon-left {
.mx-btn-icon-left > i {
background-image: url('./chevron-left.svg');
body.theme--dark & {
background-image: url('./chevron-left-light.svg');
}
}

.mx-btn-icon-right {
.mx-btn-icon-right > i {
background-image: url('./chevron-right.svg');
body.theme--dark & {
background-image: url('./chevron-right-light.svg');
}
}

.mx-btn-icon-double-right {
.mx-btn-icon-double-right > i {
background-image: url('./chevron-double-right.svg');
body.theme--dark & {
background-image: url('./chevron-double-right-light.svg');
}
}

button.mx-btn-icon-right {
Expand Down

0 comments on commit 5e04d9f

Please sign in to comment.