Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
fix(components): support safari for conditionals - I233
Browse files Browse the repository at this point in the history
Signed-off-by: irmerk <[email protected]>
  • Loading branch information
jolanglinais committed Feb 27, 2020
1 parent 8117ad3 commit 259fbf6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@
"<rootDir>/src/**/?(*.)(spec|test).{js,jsx,mjs}"
]
}
}
}
2 changes: 1 addition & 1 deletion src/components/ConditionalBoolean.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const ConditionalBoolean = (props) => {
somethingLength: props.nodeValue.position.popupWidth,
somethingHeight: props.nodeValue.position.popupHeight
+ (props.nodeValue.position.popupHeight * 0.5),
caretTop: props.nodeValue.position.popupHeight,
caretTop: 1,
caretLeft: (tooltipWidth / 2),
tooltipHeight: 0.1,
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/ConditionalSwitch.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ConditionalSwitch = (props) => {
const conditionalTooltip = {
className: 'conditionalTooltip',
currentHover: props.currentHover,
caretTop: 20,
caretTop: 1.45,
caretLeft: 2,
tooltipHeight: 1.85,
};
Expand Down
4 changes: 2 additions & 2 deletions src/components/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const ClauseConditionalTooltip = styled.div`
&:before {
content: '';
position: absolute;
top: ${props => props.caretTop - 1}px;
top: ${props => props.caretTop}em;
left: ${props => props.caretLeft - 1}px;
border-top: 5px solid #141F3C;
border-left: 5px solid transparent;
Expand All @@ -34,7 +34,7 @@ export const ClauseConditionalTooltip = styled.div`
&:after {
content: '';
position: absolute;
top: ${props => props.caretTop - 1}px;
top: ${props => props.caretTop}em;
left: ${props => props.caretLeft}px;
border-top: 4px solid #141F3C;
border-left: 4px solid transparent;
Expand Down
2 changes: 0 additions & 2 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ a {

.conditionalTooltip {
opacity: 1 !important;
height: max-content;
width: max-content;
border: 1px solid #141F3C;
border-radius: 2px;
background-color: #141F3C;
Expand Down

0 comments on commit 259fbf6

Please sign in to comment.