Skip to content

Commit

Permalink
Make test instructions copy icon use the same color as the text next …
Browse files Browse the repository at this point in the history
…to it (#9868)
  • Loading branch information
gpressutto5 authored Dec 4, 2024
1 parent 6cff322 commit af82606
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
4 changes: 4 additions & 0 deletions changelog/test-instructions-item-color
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: update

Make test instructions copy icon use the same color as the text next to it
21 changes: 11 additions & 10 deletions client/checkout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,32 +26,33 @@
display: block;
width: 1.2em;
height: 1.2em;
background: url( 'assets/images/icons/copy.svg?asset' ) no-repeat center;
background-size: contain;
mask-image: url( 'assets/images/icons/copy.svg?asset' );
mask-size: contain;
mask-repeat: no-repeat;
mask-position: center;
background-color: currentColor;
}

&:hover {
background-color: transparent;
filter: invert( 0.3 );
opacity: 0.7;

i {
filter: invert( 0.3 );
opacity: 0.7;
}
}

&:active i {
transform: scale( 0.9 );
}

&.state--success {
i {
background-image: url( 'assets/images/icons/check-green.svg?asset' );
}
&:focus {
outline: none;
}

.theme--night & {
&.state--success {
i {
filter: invert( 100% ) hue-rotate( 180deg );
mask-image: url( 'assets/images/icons/check-green.svg?asset' );
}
}
}

0 comments on commit af82606

Please sign in to comment.