Skip to content

Commit b830442

Browse files
authored
Merge pull request #30 from GleapSDK/Banner-z-index
Update z-index
2 parents 0f2d6e8 + c687d28 commit b830442

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/UI.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,17 @@ export const injectStyledCSS = (
4141
backgroundColor,
4242
buttonX,
4343
buttonY,
44-
buttonStyle,
44+
buttonStyle
4545
) => {
4646
const contrastColor = calculateContrast(primaryColor);
4747
const contrastButtonColor = calculateContrast(buttonColor);
4848
const contrastBackgroundColor = calculateContrast(backgroundColor);
4949
const contrastHeaderColor = calculateContrast(headerColor);
5050
const isDarkMode = contrastBackgroundColor === "#ffffff";
51-
const headerDarkColor = calculateShadeColor(headerColor, contrastHeaderColor === "#ffffff" ? -35 : -15);
51+
const headerDarkColor = calculateShadeColor(
52+
headerColor,
53+
contrastHeaderColor === "#ffffff" ? -35 : -15
54+
);
5255
const subTextColor = isDarkMode
5356
? calculateShadeColor(backgroundColor, 100)
5457
: calculateShadeColor(backgroundColor, -120);
@@ -68,7 +71,9 @@ export const injectStyledCSS = (
6871
const zIndexBase = 2147483600;
6972

7073
var bottomInfoOffset = 57 + buttonY;
71-
if (buttonStyle === GleapFeedbackButtonManager.FEEDBACK_BUTTON_CLASSIC_BOTTOM) {
74+
if (
75+
buttonStyle === GleapFeedbackButtonManager.FEEDBACK_BUTTON_CLASSIC_BOTTOM
76+
) {
7277
bottomInfoOffset = buttonY + 15;
7378
} else if (buttonStyle && buttonStyle.includes("CLASSIC")) {
7479
bottomInfoOffset = buttonY;
@@ -125,6 +130,7 @@ export const injectStyledCSS = (
125130
transition: margin 0.3s ease-out;
126131
margin-top: var(--gleap-margin-top);
127132
position: relative;
133+
z-index: 10000;
128134
}
129135
130136
.gleap-b-f {

0 commit comments

Comments
 (0)