Skip to content

Commit f7e8c5e

Browse files
fix: fix tyling of links in VP delegation (#3251)
1 parent 8074836 commit f7e8c5e

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

source/renderer/app/components/voting/voting-governance/VotingPowerDelegation.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@
1616
text-transform: uppercase;
1717
}
1818

19+
span.link {
20+
font-size: inherit;
21+
line-height: inherit;
22+
opacity: 0.7;
23+
24+
&:hover {
25+
opacity: 1;
26+
}
27+
}
28+
1929
.info {
2030
@extend %regularText;
2131
p {

source/renderer/app/components/voting/voting-governance/VotingPowerDelegation.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { observer } from 'mobx-react';
33
import { injectIntl, FormattedMessage } from 'react-intl';
44
import { Input } from 'react-polymorph/lib/components/Input';
55
import { Button } from 'react-polymorph/lib/components/Button';
6+
import { Link } from 'react-polymorph/lib/components/Link';
67

78
import BigNumber from 'bignumber.js';
89
import { Cardano } from '@cardano-sdk/core';
@@ -182,17 +183,17 @@ function VotingPowerDelegation({
182183
{...messages.paragraph1}
183184
values={{
184185
Link: (
185-
<a
186+
<Link
187+
className={styles.link}
186188
href={intl.formatMessage(messages.paragraph1LinkUrl)}
189+
label={intl.formatMessage(messages.paragraph1LinkText)}
187190
onClick={(event) =>
188191
onExternalLinkClick(
189192
intl.formatMessage(messages.paragraph1LinkUrl),
190193
event
191194
)
192195
}
193-
>
194-
{intl.formatMessage(messages.paragraph1LinkText)}
195-
</a>
196+
/>
196197
),
197198
}}
198199
/>
@@ -258,7 +259,11 @@ function VotingPowerDelegation({
258259
: messages.drepInputLabel)}
259260
values={{
260261
drepDirectoryLink: (
261-
<a
262+
<Link
263+
className={styles.link}
264+
label={intl.formatMessage(
265+
messages.drepInputLabelLinkText
266+
)}
262267
href="#"
263268
onClick={(event) =>
264269
onExternalLinkClick(
@@ -270,9 +275,7 @@ function VotingPowerDelegation({
270275
event
271276
)
272277
}
273-
>
274-
{intl.formatMessage(messages.drepInputLabelLinkText)}
275-
</a>
278+
/>
276279
),
277280
}}
278281
/>

0 commit comments

Comments
 (0)