Skip to content

Commit 227b0d8

Browse files
committed
Icon links should match the secondary buttons, not the text color
1 parent 2246e67 commit 227b0d8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

ui/frontend/ButtonSet.module.css

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ $radius: 4px;
8787
color: var(--button-secondary-color-light);
8888
}
8989

90+
&:visited {
91+
color: var(--button-secondary-color);
92+
}
93+
9094
&:hover:enabled {
9195
background: inherit;
9296
background-color: var(--button-secondary-border-color);
@@ -118,8 +122,3 @@ $radius: 4px;
118122
aspect-ratio: 1/1;
119123
justify-items: center;
120124
}
121-
122-
a.iconLink svg,
123-
a.iconLink:visited svg {
124-
fill: var(--font-color) !important;
125-
}

ui/frontend/ButtonSet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ IconButton.displayName = 'IconButton';
7979

8080
export const IconLink = React.forwardRef<HTMLAnchorElement, LinkProps>(
8181
({ children, ...props }, ref) => (
82-
<Link ref={ref} className={`${styles.icon} ${styles.iconLink}`} {...props}>
82+
<Link ref={ref} className={styles.icon} {...props}>
8383
{children}
8484
</Link>
8585
),

0 commit comments

Comments
 (0)