Arrow icon of secondary navigation is inconsistent (#2060)

The toggle icon in the secondary navigation points in the wrong direction.
In the changeset and code view, the current status is displayed with the icon. This should also be the case for this component.
This commit is contained in:
Florian Scholdei
2022-06-08 13:36:16 +02:00
committed by GitHub
parent 03a87be521
commit 1f5ebc04d6
3 changed files with 7 additions and 5 deletions

View File

@@ -78,7 +78,7 @@ const SecondaryNavigation: FC<Props> = ({ label, children, collapsible = true })
}
};
const arrowIcon = isCollapsed ? <i className="fas fa-caret-down" /> : <i className="fas fa-caret-right" />;
const arrowIcon = isCollapsed ? <i className="fas fa-caret-left" /> : <i className="fas fa-caret-down" />;
const menuAriaLabel = isCollapsed ? t("secondaryNavigation.showContent") : t("secondaryNavigation.hideContent");
return (