aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-04-24 15:54:08 +0800
committerFabio Berger <me@fabioberger.com>2018-04-24 15:54:08 +0800
commit870693b968de3f29b0ac97f6f92715613e1064e3 (patch)
tree22207df93877ec288a0e78748dc0659227358817 /packages/react-shared/src
parentb24b98a36557729acdc87aee3dabb4ff40f27d51 (diff)
downloaddexon-sol-tools-870693b968de3f29b0ac97f6f92715613e1064e3.tar
dexon-sol-tools-870693b968de3f29b0ac97f6f92715613e1064e3.tar.gz
dexon-sol-tools-870693b968de3f29b0ac97f6f92715613e1064e3.tar.bz2
dexon-sol-tools-870693b968de3f29b0ac97f6f92715613e1064e3.tar.lz
dexon-sol-tools-870693b968de3f29b0ac97f6f92715613e1064e3.tar.xz
dexon-sol-tools-870693b968de3f29b0ac97f6f92715613e1064e3.tar.zst
dexon-sol-tools-870693b968de3f29b0ac97f6f92715613e1064e3.zip
Fix CI test failure
Diffstat (limited to 'packages/react-shared/src')
-rw-r--r--packages/react-shared/src/components/anchor_title.tsx17
1 files changed, 10 insertions, 7 deletions
diff --git a/packages/react-shared/src/components/anchor_title.tsx b/packages/react-shared/src/components/anchor_title.tsx
index f44354097..33bb3f684 100644
--- a/packages/react-shared/src/components/anchor_title.tsx
+++ b/packages/react-shared/src/components/anchor_title.tsx
@@ -27,12 +27,6 @@ const styles: Styles = {
transform: 'rotate(45deg)',
cursor: 'pointer',
},
- headers: {
- WebkitMarginStart: 0,
- WebkitMarginEnd: 0,
- fontWeight: 'bold',
- display: 'block',
- },
h1: {
fontSize: '1.8em',
},
@@ -58,7 +52,16 @@ export class AnchorTitle extends React.Component<AnchorTitleProps, AnchorTitleSt
opacity = this.state.isHovering ? 0.6 : 1;
}
return (
- <div className="relative flex" style={{ ...styles[this.props.headerSize], ...styles.headers }}>
+ <div
+ className="relative flex"
+ style={{
+ ...styles[this.props.headerSize],
+ fontWeight: 'bold',
+ display: 'block',
+ WebkitMarginStart: 0,
+ WebkitMarginEnd: 0,
+ }}
+ >
<div className="inline-block" style={{ paddingRight: 4 }}>
{this.props.title}
</div>