Skip to content

Commit 544897e

Browse files
fix: request-reply low contrast view in nav panel (#1040)
Co-authored-by: Lukasz Gornicki <[email protected]>
1 parent 4b4bb80 commit 544897e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/containers/Sidebar/Sidebar.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ const OperationItem: React.FunctionComponent<OperationItemProps> = ({
344344
config,
345345
isAsyncAPIv2,
346346
});
347-
347+
const bgColors = ['bg-red-600', 'bg-orange-600', 'bg-green-600'];
348348
return (
349349
<li key={`menu-operation-list-${operationHrefId}`}>
350350
<a
@@ -353,7 +353,7 @@ const OperationItem: React.FunctionComponent<OperationItemProps> = ({
353353
onClick={() => setShowSidebar(false)}
354354
>
355355
<span
356-
className={`${backgroundColor} font-bold h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs`}
356+
className={`font-bold h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs ${bgColors.includes(backgroundColor) && backgroundColor}`}
357357
title={typeLabel}
358358
>
359359
{typeLabel}

0 commit comments

Comments
 (0)