Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
fix: adjust icon in AddRecipient (#2732)
Browse files Browse the repository at this point in the history
  • Loading branch information
goga-m committed Aug 26, 2020
1 parent daa439b commit a8befff
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 14 deletions.
1 change: 1 addition & 0 deletions .svgo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ plugins:
- removeViewBox: false
- convertStyleToAttrs: true
- cleanupIDs: false
- removeUnknownsAndDefaults: false
2 changes: 1 addition & 1 deletion src/app/assets/svg/questionmark.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ const defaultStyle = `
}
`;

const questionMarkStyle = `
& {
.questionmark {
svg {
fill: var(--theme-color-primary-100);
}
&:hover svg {
fill: var(--theme-color-primary-600);
}
}
}
`;

export const AddRecipientWrapper = styled.div`
${defaultStyle}
${questionMarkStyle}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const ToggleButtons = ({ isSingle, onChange }: ToggleButtonProps) => {
</div>
<div>
<Tippy content={t("TRANSACTION.RECIPIENTS_HELPTEXT", { count: 64 })}>
<div className="rounded-full cursor-pointer bg-theme-primary-100 text-theme-primary-500">
<div className="rounded-full cursor-pointer text-theme-primary-600 hover:text-theme-primary-100 questionmark">
<Icon name="QuestionMark" width={20} height={20} />
</div>
</Tippy>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`AddRecipient should render 1`] = `
<div>
<div
class="sc-fzqBZW fdSwjK"
class="sc-fzqBZW deUroq"
>
<div
class="text-theme-neutral-dark hover:text-theme-primary"
Expand All @@ -18,7 +18,7 @@ exports[`AddRecipient should render 1`] = `
</div>
<div>
<div
class="rounded-full cursor-pointer bg-theme-primary-100 text-theme-primary-500"
class="rounded-full cursor-pointer text-theme-primary-600 hover:text-theme-primary-100 questionmark"
>
<div
class="sc-AxiKw dklFyP"
Expand Down Expand Up @@ -164,7 +164,7 @@ exports[`AddRecipient should render 1`] = `
exports[`AddRecipient should render with multiple recipients tab 1`] = `
<div>
<div
class="sc-fzqBZW fdSwjK"
class="sc-fzqBZW deUroq"
>
<div
class="text-theme-neutral-dark hover:text-theme-primary"
Expand All @@ -179,7 +179,7 @@ exports[`AddRecipient should render with multiple recipients tab 1`] = `
</div>
<div>
<div
class="rounded-full cursor-pointer bg-theme-primary-100 text-theme-primary-500"
class="rounded-full cursor-pointer text-theme-primary-600 hover:text-theme-primary-100 questionmark"
>
<div
class="sc-AxiKw dklFyP"
Expand Down Expand Up @@ -325,7 +325,7 @@ exports[`AddRecipient should render with multiple recipients tab 1`] = `
exports[`AddRecipient should render with single recipient data 1`] = `
<div>
<div
class="sc-fzqBZW fdSwjK"
class="sc-fzqBZW deUroq"
>
<div
class="text-theme-neutral-dark hover:text-theme-primary"
Expand All @@ -340,7 +340,7 @@ exports[`AddRecipient should render with single recipient data 1`] = `
</div>
<div>
<div
class="rounded-full cursor-pointer bg-theme-primary-100 text-theme-primary-500"
class="rounded-full cursor-pointer text-theme-primary-600 hover:text-theme-primary-100 questionmark"
>
<div
class="sc-AxiKw dklFyP"
Expand Down Expand Up @@ -497,7 +497,7 @@ exports[`AddRecipient should render with single recipient data 1`] = `
exports[`AddRecipient should render without recipients 1`] = `
<div>
<div
class="sc-fzqBZW fdSwjK"
class="sc-fzqBZW deUroq"
>
<div
class="text-theme-neutral-dark hover:text-theme-primary"
Expand All @@ -512,7 +512,7 @@ exports[`AddRecipient should render without recipients 1`] = `
</div>
<div>
<div
class="rounded-full cursor-pointer bg-theme-primary-100 text-theme-primary-500"
class="rounded-full cursor-pointer text-theme-primary-600 hover:text-theme-primary-100 questionmark"
>
<div
class="sc-AxiKw dklFyP"
Expand Down Expand Up @@ -658,7 +658,7 @@ exports[`AddRecipient should render without recipients 1`] = `
exports[`AddRecipient should set available amount 1`] = `
<div>
<div
class="sc-fzqBZW fdSwjK"
class="sc-fzqBZW deUroq"
>
<div
class="text-theme-neutral-dark hover:text-theme-primary"
Expand All @@ -673,7 +673,7 @@ exports[`AddRecipient should set available amount 1`] = `
</div>
<div>
<div
class="rounded-full cursor-pointer bg-theme-primary-100 text-theme-primary-500"
class="rounded-full cursor-pointer text-theme-primary-600 hover:text-theme-primary-100 questionmark"
>
<div
class="sc-AxiKw dklFyP"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ exports[`Transaction Send should render 1st step 1`] = `
data-testid="recipient-address"
>
<div
class="sc-fzqARJ dSnDuU"
class="sc-fzqARJ hcuvCU"
>
<div
class="text-theme-neutral-dark hover:text-theme-primary"
Expand All @@ -556,7 +556,7 @@ exports[`Transaction Send should render 1st step 1`] = `
</div>
<div>
<div
class="rounded-full cursor-pointer bg-theme-primary-100 text-theme-primary-500"
class="rounded-full cursor-pointer text-theme-primary-600 hover:text-theme-primary-100 questionmark"
>
<div
class="sc-AxhUy hSYVGy"
Expand Down

0 comments on commit a8befff

Please sign in to comment.