Skip to content

Commit

Permalink
fix: fix tyling of links in VP delegation (#3251)
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonmaslowski authored Dec 4, 2024
1 parent 8074836 commit f7e8c5e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@
text-transform: uppercase;
}

span.link {
font-size: inherit;
line-height: inherit;
opacity: 0.7;

&:hover {
opacity: 1;
}
}

.info {
@extend %regularText;
p {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { observer } from 'mobx-react';
import { injectIntl, FormattedMessage } from 'react-intl';
import { Input } from 'react-polymorph/lib/components/Input';
import { Button } from 'react-polymorph/lib/components/Button';
import { Link } from 'react-polymorph/lib/components/Link';

import BigNumber from 'bignumber.js';
import { Cardano } from '@cardano-sdk/core';
Expand Down Expand Up @@ -182,17 +183,17 @@ function VotingPowerDelegation({
{...messages.paragraph1}
values={{
Link: (
<a
<Link
className={styles.link}
href={intl.formatMessage(messages.paragraph1LinkUrl)}
label={intl.formatMessage(messages.paragraph1LinkText)}
onClick={(event) =>
onExternalLinkClick(
intl.formatMessage(messages.paragraph1LinkUrl),
event
)
}
>
{intl.formatMessage(messages.paragraph1LinkText)}
</a>
/>
),
}}
/>
Expand Down Expand Up @@ -258,7 +259,11 @@ function VotingPowerDelegation({
: messages.drepInputLabel)}
values={{
drepDirectoryLink: (
<a
<Link
className={styles.link}
label={intl.formatMessage(
messages.drepInputLabelLinkText
)}
href="#"
onClick={(event) =>
onExternalLinkClick(
Expand All @@ -270,9 +275,7 @@ function VotingPowerDelegation({
event
)
}
>
{intl.formatMessage(messages.drepInputLabelLinkText)}
</a>
/>
),
}}
/>
Expand Down

0 comments on commit f7e8c5e

Please sign in to comment.