1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

Changing brand-white to currentColor

This commit is contained in:
Jamie Hewitt 2022-04-13 14:45:02 +03:00
parent dfdaaee7d8
commit 278f0d4ab9
5 changed files with 13 additions and 33 deletions

View File

@ -7,10 +7,11 @@
.icon {
display: inline-block;
width: 1.2em;
height: 1.2em;
fill: currentColor;
margin-right: calc(var(--spacer) / 8);
width: 1em;
height: 1em;
margin-top: -0.25em;
fill: currentColor;
}
.minimal {

View File

@ -16,5 +16,5 @@
display: inline-block;
margin-bottom: -0.1em;
margin-left: calc(var(--spacer) / 6);
fill: var(--brand-white);
fill: currentColor;
}

View File

@ -85,7 +85,8 @@ export default function Actions({
) : !isSupportedOceanNetwork ? (
<Tooltip content={<AvailableNetworks />}>
<Button type="submit" style="primary" disabled>
Unsupported Network <Info className={styles.infoIcon} />
Unsupported Network
<Info className={styles.infoIcon} />
</Button>
</Tooltip>
) : (

View File

@ -6,12 +6,6 @@
color: var(--brand-alert-red);
margin-left: calc(var(--spacer) / 3);
}
.network svg {
width: 1em;
height: 1em;
margin-top: -0.25em;
fill: currentColor;
}
.tooltip {
width: 0.5em;
@ -22,12 +16,3 @@
height: 0.5em;
fill: var(--brand-alert-red);
}
.errorIcon {
width: 0.85em;
height: 0.85em;
cursor: help;
display: inline-block;
margin-bottom: -0.1em;
margin-left: calc(var(--spacer) / 6);
color: var(--brand-alert-red);
}

View File

@ -25,19 +25,12 @@ export default function Title({
isSupportedOceanNetwork ? styles.network : styles.wrongNetwork
}
/>
{isSupportedOceanNetwork ? (
<Tooltip
content={<AvailableNetworks />}
className={styles.tooltip}
/>
) : (
<Tooltip
content={<AvailableNetworks />}
className={styles.errorTooltip}
>
<Info className={styles.errorIcon} />
</Tooltip>
)}
<Tooltip
content={<AvailableNetworks />}
className={
isSupportedOceanNetwork ? styles.tooltip : styles.errorIcon
}
/>
</>
)}
</>