Skip to content

Commit

Permalink
fixed button style in tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaB01 committed Jul 8, 2024
1 parent ed1bd03 commit 9f23915
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/cjs/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/esm/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gleap",
"version": "13.7.5",
"version": "13.7.6",
"main": "build/cjs/index.js",
"module": "build/esm/index.mjs",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions published/13.7.6/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion published/latest/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/GleapTooltipManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export default class GleapTooltipManager {

canEmbed(element) {
const voidElements = new Set([
'area', 'base', 'br', 'embed', 'hr', 'img', 'input', 'source', 'track', 'wbr'
'area', 'base', 'br', 'embed', 'hr', 'img', 'input', 'source', 'track', 'wbr', 'canvas'
]);

return element && !voidElements.has(element.tagName.toLowerCase());
Expand Down
4 changes: 3 additions & 1 deletion src/UI.js
Original file line number Diff line number Diff line change
Expand Up @@ -1936,11 +1936,13 @@ export const injectStyledCSS = (
color: ${buttonColor} !important;
}
.gleap-tooltip .linktype-button,
.gleap-tour-message .linktype-button {
display: inline-block !important;
border-radius: 5px;
box-sizing: border-box;
padding: 10px 20px;
padding: 10px 20px !important;
text-decoration: none !important;
background-color: ${buttonColor} !important;
color: ${contrastButtonColor} !important;
}
Expand Down

0 comments on commit 9f23915

Please sign in to comment.