ui: style tooltip font size
commitd19b09103c404c92a121d63986bfcdcd97d85276
authortomholford <tomholford@users.noreply.github.com>
dateWed 28 Jul 2021, 11:50 (5 years ago)
parent491156b
src/components/CopyButtonWide.tsx+1−1
@@ -8,7 +8,7 @@ export function CopyButtonWide({ text, children, ...rest }) {
88 return (
99 <WithTooltip
1010 content={didCopy ? 'Copied!' : 'Copy'}
11− className={'rel full nowrap'}
11+ className={'rel full nowrap copy-button-wide'}
1212 position={TooltipPosition.TopRight}>
1313 <BaseCopyButton as="span" onClick={doCopy} text={text} {...rest}>
1414 {children}
src/components/WithTooltip.tsx+1−1
@@ -43,7 +43,7 @@ export default function WithTooltip({
4343 {children}
4444 {isHovered && (
4545 <div
46− className="abs mb1 bg-black white ph4 pv2 r4"
46+ className="abs mb1 bg-black white ph4 pv2 r4 open-tooltip"
4747 style={positionStyle}>
4848 {content}
4949 </div>
src/style/bridge.scss+6
@@ -22,3 +22,9 @@ span.circular-icon-bg {
2222 margin-right: 8px;
2323 border-radius: 50%;
2424}
25+
26+div.copy-button-wide {
27+ .open-tooltip {
28+ font-size: 0.75rem;
29+ }
30+}