File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ import { clsx } from '@lcov-viewer/core' ;
2+ import React from 'react' ;
3+ import classes from './LinkButton.module.less' ;
4+
5+ const LinkButton = ( { children, className, ...props } ) => (
6+ < button className = { clsx ( classes . root , className ) } { ...props } > { children } </ button >
7+ ) ;
8+
9+ export default LinkButton ;
Original file line number Diff line number Diff line change 1+ @import " @lcov-viewer/core/styles/colors" ;
2+
3+ .root {
4+ border : none ;
5+ outline : none ;
6+ background : none ;
7+ color : @color-main ;
8+ text-decoration : none ;
9+ margin : 0 ;
10+ padding : 0 ;
11+ font-family : inherit ;
12+ font-size : inherit ;
13+ cursor : pointer ;
14+
15+ & :hover {
16+ color : darken (@color-main , 20% );
17+ }
18+ }
Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ export { default as TreeView } from './TreeView/TreeView';
22export { default as Footer } from './Footer/Footer' ;
33export { default as CoverageIndicator } from './CoverageIndicator/CoverageIndicator' ;
44export { default as Summary } from './Summary/Summary' ;
5+ export { default as LinkButton } from './LinkButton/LinkButton' ;
You can’t perform that action at this time.
0 commit comments