Skip to content

Commit

Permalink
feat: Add double border to AMEND match tooltips and sidebar (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonherbert authored Dec 6, 2022
1 parent ac2bf7e commit d97a67e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ts/components/MatchOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const matchOverlay = ({
// If there's a gap, the tooltip library detects a `mouseleave` event
// and closes the tooltip prematurely. We account for this with
// padding on the tooltip container – see the styling for MatchWidget.
const yOffset = -3;
const yOffset = -4;
const isTop = placement.indexOf("top") >= 0;
const isBottom = placement.indexOf("bottom") >= 0
if (referenceElement && currentRectIndex !== undefined && (isTop || isBottom)) {
Expand Down
2 changes: 1 addition & 1 deletion src/ts/components/SidebarMatch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const getSidebarMatchStyles = (
`;
case MatchType.AMEND:
return css`
border-left: 2px solid ${color};
border-left: 4px double ${color};
`;
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/ts/utils/decoration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export const createGlobalDecorationStyleTag = (
const styleContent = `
.${DecorationClassMap.AMEND} {
background-color: ${hasReplacementColours.backgroundColour};
border-bottom: 2px solid ${hasReplacementColours.borderColour};
border-bottom: 4px double ${hasReplacementColours.borderColour};
}
.${DecorationClassMap.AMEND}.MatchDecoration--is-selected {
Expand Down

0 comments on commit d97a67e

Please sign in to comment.