Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 045e360

Browse files
committed
fix: fix rc-link style error
1 parent 24ebfae commit 045e360

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

packages/ui/xconsole-rc-base-link/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Link extends Component {
100100

101101
if (exactDisabled || !exactLinkTargetPath) {
102102
return (
103-
<span className={exactClassName} {...restProps} />
103+
<span className={`${exactClassName} wind-rc-link-text`} {...restProps} />
104104
)
105105
}
106106

packages/ui/xconsole-rc-base-link/src/index.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@
33
color: #c3c5c6;
44
cursor: not-allowed;
55
}
6+
&.wind-rc-link-text {
7+
color: #0064c8;
8+
color: var(--color-link-1,#0064c8);
9+
cursor: pointer;
10+
}
611
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import * as React from 'react';
2+
import { storiesOf } from '@storybook/react';
3+
import Link from '../src/index'
4+
import '@alicloud/console-components/dist/xconsole.css';
5+
import '../src/index.less'
6+
7+
storiesOf('XconsoleRcLink', module).add('XconsoleRcLink', () => {
8+
return (
9+
<div id="app-wrapper">
10+
<Link>xxxxx</Link>
11+
</div>
12+
);
13+
});

0 commit comments

Comments
 (0)