Skip to content

Commit

Permalink
fix navigation low contrast nav panel
Browse files Browse the repository at this point in the history
  • Loading branch information
AceTheCreator committed Aug 14, 2024
1 parent 14620a8 commit 48192d8
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']

Check failure on line 347 in library/src/containers/Sidebar/Sidebar.tsx

View workflow job for this annotation

GitHub Actions / Test NodeJS PR - ubuntu-latest

Replace `··const·bgColors·=·['bg-red-600',·'bg-orange-600',·'bg-green-600']` with `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 48192d8

Please sign in to comment.