Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: request-reply low contrast view in nav panel #1040

Merged
merged 11 commits into from
Aug 21, 2024
4 changes: 2 additions & 2 deletions library/src/containers/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ const OperationItem: React.FunctionComponent<OperationItemProps> = ({
config,
isAsyncAPIv2,
});

const bgColors = ['bg-red-600', 'bg-orange-600', 'bg-green-600'];
return (
<li key={`menu-operation-list-${operationHrefId}`}>
<a
Expand All @@ -353,7 +353,7 @@ const OperationItem: React.FunctionComponent<OperationItemProps> = ({
onClick={() => setShowSidebar(false)}
>
<span
className={`${backgroundColor} font-bold h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs`}
className={`font-bold h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs ${bgColors.includes(backgroundColor) && backgroundColor}`}
title={typeLabel}
>
{typeLabel}
Expand Down
Loading