Skip to content

Commit

Permalink
fix: each theme has a proper tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
dlcastillop committed Feb 25, 2023
1 parent c293cad commit 7d7f040
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/assets/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@
}

.tooltips .tooltiptext {
background-color: black;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px;
position: absolute;
z-index: 1;
font-weight: 500;
font-size: 14px;
}

.tooltips .main-tooltip {
Expand Down
5 changes: 5 additions & 0 deletions src/assets/themes/minimalist-dark.theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,9 @@
.paylink-link:hover {
color: white !important;
}

.tooltipcolor {
background-color: white;
color: #131212;
}
}
5 changes: 5 additions & 0 deletions src/assets/themes/minimalist.theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,9 @@
.paylink-link:hover {
color: black !important;
}

.tooltipcolor {
background-color: black;
color: white;
}
}
5 changes: 5 additions & 0 deletions src/assets/themes/swordfest-dark.theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,9 @@
.paylink-link:hover {
color: #dedede !important;
}

.tooltipcolor {
background-color: white;
color: #111111;
}
}
5 changes: 5 additions & 0 deletions src/assets/themes/swordfest.theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,9 @@
.paylink-link:hover {
color: #212121 !important;
}

.tooltipcolor {
background-color: #212121;
color: white;
}
}
2 changes: 1 addition & 1 deletion src/components/Payment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Payment = ({ label, img, value, id, showQRCode }) => {
title={"Copy " + label + " address"}
>
<span
className="tooltiptext hideTooltip main-tooltip"
className="tooltiptext hideTooltip main-tooltip tooltipcolor"
id={"span" + id}
>
Copied!
Expand Down
2 changes: 1 addition & 1 deletion src/components/QRCode.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const QRCode = ({ label, img, value }) => {
onClick={copyEvent}
title={"Copy " + label + " address"}
>
<span className="tooltiptext hideTooltip qr-tooltip" id="span-qr">
<span className="tooltiptext hideTooltip qr-tooltip tooltipcolor" id="span-qr">
Copied!
</span>
<i className="bx bx-copy mx-2"></i>
Expand Down

0 comments on commit 7d7f040

Please sign in to comment.