Skip to content

Commit 151bafe

Browse files
fix(AutoLinkHeader): fix auto link header margin (#116)
Co-authored-by: Donald Labaj <[email protected]>
1 parent 864758b commit 151bafe

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

src/components/AutoLinkHeader.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Flex, FlexItem, Content, Button } from '@patternfly/react-core'
1+
import { Flex, FlexItem, Content } from '@patternfly/react-core'
22
import LinkIcon from '@patternfly/react-icons/dist/esm/icons/link-icon'
33
import { slugger } from '../utils/slugger'
44
import { css } from '@patternfly/react-styles'
@@ -33,20 +33,12 @@ export const AutoLinkHeader = ({
3333
tabIndex={-1}
3434
isEditorial
3535
>
36-
<Button
37-
href={`#${slug}`}
38-
component="a"
39-
className="ws-heading-anchor"
40-
tabIndex={-1}
41-
aria-hidden
42-
variant="plain"
43-
isInline
44-
>
36+
<a href={`#${slug}`} className="ws-heading-anchor" tabIndex={-1}>
4537
<LinkIcon
4638
className="ws-heading-anchor-icon"
4739
style={{ verticalAlign: 'middle' }}
4840
/>
49-
</Button>
41+
</a>
5042
{children}
5143
</Content>
5244
</FlexItem>

src/components/DocsTables.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const hasTables = !!propComponents || !!cssPrefix
1515
hasTables && (
1616
<Stack hasGutter>
1717
{propComponents && (
18-
<StackItem>
18+
<StackItem className="pf-v6-u-mt-md">
1919
<PropsTables
2020
propComponents={propComponents}
2121
url={url}

src/layouts/Main.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
import '@patternfly/patternfly/patternfly.css'
3+
import '@patternfly/patternfly/patternfly-addons.css'
34
import '../styles/global.scss'
45
import { ClientRouter } from 'astro:transitions'
56

0 commit comments

Comments
 (0)