Skip to content

Commit 8fd2f27

Browse files
committed
remove .header-anchor class as it has been replaced by the IdAnchor component
1 parent 5aa79ed commit 8fd2f27

File tree

2 files changed

+1
-55
lines changed

2 files changed

+1
-55
lines changed

src/@chakra-ui/styles.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -50,30 +50,6 @@ const styles = {
5050
"li > p": {
5151
marginBottom: "calc(1.45rem / 2)",
5252
},
53-
// Anchor tag styles
54-
// Selected specifically for mdx rendered side icon link
55-
".header-anchor": {
56-
position: "relative !important",
57-
display: "initial",
58-
marginStart: "-1.5em",
59-
paddingEnd: "0.5rem !important",
60-
fontSize: "1rem",
61-
verticalAlign: "middle",
62-
63-
svg: {
64-
display: "inline",
65-
fill: "primary.base",
66-
visibility: "hidden",
67-
},
68-
},
69-
"h1:hover,h2:hover,h3:hover,h4:hover,h5:hover,h6:hover": {
70-
".header-anchor svg": {
71-
visibility: "visible",
72-
},
73-
},
74-
".header-anchor:focus svg": {
75-
visibility: "visible",
76-
},
7753
"pre, code, kbd, samp": {
7854
fontSize: "md",
7955
lineHeight: "base",

src/styles/global.css

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -177,40 +177,10 @@
177177
}
178178
}
179179

180-
/* Anchor tag styles */
181-
/* Selected specifically for mdx rendered side icon link */
182-
.header-anchor {
183-
position: "relative !important";
184-
display: "initial";
185-
margin-inline-start: "-1.5em";
186-
padding-inline-end: "0.5rem !important";
187-
font-size: "1rem";
188-
vertical-align: "middle";
189-
190-
& svg {
191-
@apply invisible inline fill-primary;
192-
}
193-
194-
&:focus svg {
195-
@apply visible;
196-
}
197-
}
198-
199-
h1:hover,
200-
h2:hover,
201-
h3:hover,
202-
h4:hover,
203-
h5:hover,
204-
h6:hover {
205-
& .header-anchor svg {
206-
@apply visible;
207-
}
208-
}
209-
210180
pre,
211181
code,
212182
kbd,
213183
samp {
214184
@apply font-monospace text-base leading-base;
215185
}
216-
}
186+
}

0 commit comments

Comments
 (0)