Skip to content

Commit

Permalink
make ticker arrow visible only on parent elem hover
Browse files Browse the repository at this point in the history
  • Loading branch information
emilydrakesmith committed Dec 27, 2024
1 parent ccdc62d commit d0a9139
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions src/components/Futa/SearchableTicker/TickerItem.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@
transition: all var(--animation-speed) ease-in-out;
}

/* transparent ticker arrow in base state with transition */
.ticker_arrow {
transition: all var(--animation-speed) ease-in-out;
color: #f0f0f800;
}

/* add color to ticker arrow when parent elem is hovered */
.ticker_name:hover .ticker_arrow {
color: var(--text2);
}

/* styles to apply universally to cells in the row */
/* will be overridden by lower CSS in this file */
.ticker_item > * {
Expand All @@ -16,6 +27,10 @@
width: 120px;
}

/* .ticker_arrow {
visibility: hidden;
} */

.active {
background-color: #28585d;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Futa/SearchableTicker/TickerItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export default function TickerItem(props: PropsIF) {
}}
>
<div className={styles.ticker_name}>
{isMobile || <GoChevronRight />}
{isMobile || <GoChevronRight className={styles.ticker_arrow} />}
<p>{ticker}</p>
</div>
<p className={styles.market_cap}>{formattedMarketCap}</p>
Expand Down

0 comments on commit d0a9139

Please sign in to comment.