kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Button: remove text-decoration when wrapped with a <Link/>
rodzic
73e4d00cc2
commit
65891a904c
|
@ -66,7 +66,7 @@ export default class Button extends React.PureComponent {
|
||||||
|
|
||||||
if (this.props.to) {
|
if (this.props.to) {
|
||||||
return (
|
return (
|
||||||
<Link to={this.props.to} tabIndex={-1}>
|
<Link to={this.props.to} tabIndex={-1} className='button__link'>
|
||||||
{btn}
|
{btn}
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
|
|
|
@ -37,6 +37,10 @@ button {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__link {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
&:active,
|
&:active,
|
||||||
&:focus,
|
&:focus,
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|
Ładowanie…
Reference in New Issue