Skip to content

Commit

Permalink
fix(Tooltip): styles (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsimao committed Nov 24, 2022
1 parent ffcb705 commit 781d3bd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/component-library/Tooltip/Tooltip.style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ const StyledTooltip = styled.div<StyledTooltipProps>`
align-items: center;
box-sizing: border-box;
vertical-align: top;
background-color: ${theme.colors.textPrimary};
padding: ${theme.spacing.spacing2};
background-color: ${theme.tooltip.bg};
padding: ${theme.spacing.spacing3};
border-radius: ${theme.rounded.rg};
// TODO: add box-shadow to theme
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.21);
font-weight: ${theme.fontWeight.book};
font-size: ${theme.text.s};
line-height: ${theme.lineHeight.s};
color: ${theme.colors.textPrimary};
word-break: break-word;
-webkit-font-smoothing: antialiased;
cursor: default;
Expand Down Expand Up @@ -64,7 +65,7 @@ const StyledTooltipTip = styled.span<StyledTooltipTipProps>`
width: 0;
border-style: solid;
border-width: ${theme.tooltip.tip.width};
border-top-color: ${theme.colors.textPrimary};
border-top-color: ${theme.tooltip.tip.bg};
border-left-color: transparent;
border-right-color: transparent;
border-bottom-color: transparent;
Expand Down
3 changes: 3 additions & 0 deletions src/component-library/theme/theme.interlay.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,7 @@
--colors-table-row-hover-bg: #f0f1f2;
--color-table-header-row-bg: #f4f3f5;
--colors-table-border: #f4f3f5;
/* Table */
--colors-tooltip-bg: var(--colors-neutral-white);
--colors-tooltip-tip-bg: var(--colors-neutral-white);
}
3 changes: 3 additions & 0 deletions src/component-library/theme/theme.kintsugi.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,7 @@
--colors-table-row-hover-bg: #1c2c46;
--color-table-header-row-bg: #080e28;
--colors-table-border: #080e28;
/* Table */
--colors-tooltip-bg: var(--colors-blue);
--colors-tooltip-tip-bg: var(--colors-blue);
}
2 changes: 2 additions & 0 deletions src/component-library/theme/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,10 @@ const theme = {
}
},
tooltip: {
bg: 'var(--colors-tooltip-bg)',
offset: '3px',
tip: {
bg: 'var(--colors-tooltip-tip-bg)',
width: '5px'
}
}
Expand Down

3 comments on commit 781d3bd

@vercel
Copy link

@vercel vercel bot commented on 781d3bd Nov 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

interbtc-ui-lending-demo-temp – ./

interbtc-ui-lending-demo-temp-interlay.vercel.app
interbtc-ui-lending-demo-temp-git-master-interlay.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 781d3bd Nov 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 781d3bd Nov 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.