Transform question mark to cross when tooltip is open

- Behavior consistent w/ price_breakdown feature.
This commit is contained in:
Jean-Baptiste Bellet
2021-03-09 17:22:07 +01:00
parent 64a2493cc7
commit 5239b259d0

View File

@@ -9,6 +9,7 @@
background-image: image-url("question-mark-icon.svg");
background-size: cover;
background-repeat: no-repeat;
border-radius: 50%;
// Reset button element css attributes
padding: 0;
@@ -22,6 +23,17 @@
&:focus {
background-color: transparent;
}
&.open {
background-image: none;
background-color: $teal-500;
&::before {
@include icon-font;
content: "";
color: $white;
}
}
}
.joyride-tip-guide.question-mark-tooltip {
@@ -29,7 +41,7 @@
max-width: 65%;
// JS needs to be tweaked to adjust for left alignment - this is dynamic can't rewrite in CSS
margin-left: -7.4rem;
margin-top: 0.1rem;
margin-top: -0.1rem;
background-color: transparent;
.background {
@@ -39,6 +51,7 @@
width: 100%;
height: 100%;
z-index: -1;
cursor: pointer;
}
.joyride-content-wrapper {