File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { useLocation , Link } from 'react-router-dom' ;
2+ import { useLocation } from 'react-router-dom' ;
33import styles from './Breadcrumbs.module.css' ;
44
55const Breadcrumbs = ( ) => {
@@ -16,9 +16,9 @@ const Breadcrumbs = () => {
1616
1717 return (
1818 < nav className = { styles . breadcrumbs } aria-label = "Breadcrumb" >
19- < Link to = "/" className = { styles . crumb } > Wiki</ Link >
19+ < span className = { styles . crumb } > Wiki</ span >
2020 < span className = { styles . sep } > ›</ span >
21- < Link to = { `/wiki/ ${ folder } ` } className = { styles . crumb } > { folderLabel } </ Link >
21+ < span className = { styles . crumb } > { folderLabel } </ span >
2222 < span className = { styles . sep } > ›</ span >
2323 < span className = { `${ styles . crumb } ${ styles . current } ` } > { pageLabel } </ span >
2424 </ nav >
Original file line number Diff line number Diff line change @@ -28,17 +28,13 @@ function makeHeading(Tag) {
2828 return (
2929 < div className = { styles . headingWrapper } >
3030 < Tag id = { slug } { ...props } > { children } </ Tag >
31- < a
31+ < button
3232 className = { styles . anchorLink }
33- href = { `#${ slug } ` }
34- aria-label = "Link zu diesem Abschnitt"
35- onClick = { ( e ) => {
36- e . preventDefault ( ) ;
37- document . getElementById ( slug ) ?. scrollIntoView ( { behavior : 'smooth' } ) ;
38- } }
33+ aria-label = "Zu diesem Abschnitt scrollen"
34+ onClick = { ( ) => document . getElementById ( slug ) ?. scrollIntoView ( { behavior : 'smooth' } ) }
3935 >
4036 < Hash size = { 14 } />
41- </ a >
37+ </ button >
4238 </ div >
4339 ) ;
4440 } ;
Original file line number Diff line number Diff line change 189189 transition : opacity 0.12s ease, color 0.12s ease;
190190 display : flex;
191191 align-items : center;
192- text-decoration : none;
192+ background : none;
193+ border : none;
194+ padding : 0 ;
195+ cursor : pointer;
193196}
194197
195198.anchorLink : hover {
You can’t perform that action at this time.
0 commit comments