Skip to content

Commit

Permalink
Fix tooltips. Svgs don't accept classnames with the recnet changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluesmile82 committed Jul 8, 2024
1 parent e3477fb commit 6c488e1
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/components/charts/species-bar/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function SpeciesBar({
delay={100}
position="bottom"
>
<InfoIcon className={styles.icon} />
<span className={styles.icon}><InfoIcon /></span>
</Tooltip>
</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/layer-toggle/layers-tools/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function LayersTools({
animation="none"
placement="top"
>
<InfoIcon className={styles.icon} />
<span className={styles.icon}><InfoIcon /></span>
</Tooltip>
</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function Challenges({
delay={100}
placement="top"
>
<InfoIcon className={styles.icon} />
<span className={styles.icon}><InfoIcon /></span>
</Tooltip>
</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ function IndicatorCard({
<div className={styles.description}>{description}</div>
<div className={styles.children}>{children}</div>
{tooltipInfo && (
<span className={styles.iconWrapper}>
<span onClick={() => console.log('hey')} className={styles.iconWrapper}>
<Tooltip
content={<div className={styles.tooltip}>{tooltipInfo}</div>}
position="top"
>
<InfoIcon className={styles.icon} />
>
<span className={styles.icon}><InfoIcon /></span>
</Tooltip>
</span>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,11 @@
position: absolute;
top: 17px;
right: 24px;

.icon {
height: 15px;
width: 15px;
}
.tooltip {
color: $white;
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function Trend({
delay={100}
placement="top"
>
<InfoIcon className={styles.icon} />
<span className={styles.icon}><InfoIcon /></span>
</Tooltip>
</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function SidebarCard({
delay={100}
position="bottom"
>
<InfoIcon className={styles.icon} />
<span className={styles.icon}><InfoIcon /></span>
</Tooltip>
</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ function Component(props) {
delay={100}
position="bottom"
>
<InfoIcon className={styles.icon} />
<span className={styles.icon}><InfoIcon /></span>
</Tooltip>
</span>
</div>
Expand Down Expand Up @@ -269,7 +269,7 @@ function Component(props) {
delay={100}
position="bottom"
>
<InfoIcon className={styles.icon} />
<span className={styles.icon}><InfoIcon /></span>
</Tooltip>
</span>
</div>
Expand All @@ -296,7 +296,7 @@ function Component(props) {
delay={100}
position="bottom"
>
<InfoIcon className={styles.icon} />
<span className={styles.icon}><InfoIcon /></span>
</Tooltip>
</span>
</div>
Expand Down

0 comments on commit 6c488e1

Please sign in to comment.