Skip to content

Commit

Permalink
fix: request-reply low contrast view in nav panel (#1040)
Browse files Browse the repository at this point in the history
Co-authored-by: Lukasz Gornicki <[email protected]>
  • Loading branch information
AceTheCreator and derberg authored Aug 21, 2024
1 parent 4b4bb80 commit 544897e
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 544897e

Please sign in to comment.