Skip to content

Commit

Permalink
fix: nav button hover (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
gorgeousvlad authored Sep 18, 2023
1 parent a92098a commit e90fed5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/navigation/components/NavigationItem/NavigationItem.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ $block: '.#{$ns}navigation-item';
@include reset-link-style();

&__content {
&:hover,
&:active {
color: var(--g-color-text-link);
&:not(#{&}_type_button) {
&:hover,
&:active {
color: var(--g-color-text-link);
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const NavigationItem: React.FC<NavigationItemProps> = ({
return (
<BlockIdContext.Provider value={ANALYTICS_ID}>
<li className={b({'menu-layout': menuLayout}, className)}>
<Component {...componentProps} className={b('content')} />
<Component {...componentProps} className={b('content', {type})} />
</li>
</BlockIdContext.Provider>
);
Expand Down

0 comments on commit e90fed5

Please sign in to comment.