Skip to content

Commit

Permalink
Fix asyncapi#3496 text misalignment on hovering over boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
Utkarsh-123github committed Dec 21, 2024
1 parent 9c1fda0 commit 9cfa3cf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ export default function Asyncapi3IdAndAddressComparison({ className = '' }: Asyn
<h3 className='mb-4 ml-2 font-sans text-lg font-medium'>AsyncAPI 2.x</h3>
<div>
<div
className={`${hoverState.Paths ? 'bg-yellow-100' : ' '}m-2 border border-yellow-300 p-2`}
className={`${hoverState.Paths ? 'bg-yellow-100' : ' '} m-2 border border-yellow-300 p-2`}
onMouseEnter={() => handleMouseEnter('Paths')}
onMouseLeave={() => handleMouseLeave('Paths')}
>
Channels
<div
className={`${hoverState.PathItem ? 'bg-yellow-300' : 'bg-white'}m-2 border border-yellow-600 p-2`}
className={`${hoverState.PathItem ? 'bg-yellow-300' : 'bg-white'} m-2 border border-yellow-600 p-2`}
onMouseOver={() => handleMouseEnter('PathItem')}
onMouseLeave={() => handleMouseLeave('PathItem')}
>
Expand All @@ -52,13 +52,13 @@ export default function Asyncapi3IdAndAddressComparison({ className = '' }: Asyn
<h3 className='mb-4 ml-2 font-sans text-lg font-medium'>AsyncAPI 3.0</h3>
<div>
<div
className={`${hoverState.Paths ? 'bg-yellow-100' : ' '}m-2 border border-yellow-300 p-2`}
className={`${hoverState.Paths ? 'bg-yellow-100' : ' '} m-2 border border-yellow-300 p-2`}
onMouseEnter={() => handleMouseEnter('Paths')}
onMouseLeave={() => handleMouseLeave('Paths')}
>
Channels
<div
className={`${hoverState.PathItem ? 'bg-yellow-300' : 'bg-white'}m-2 border border-yellow-600 p-2`}
className={`${hoverState.PathItem ? 'bg-yellow-300' : 'bg-white'} m-2 border border-yellow-600 p-2`}
onMouseOver={() => handleMouseEnter('PathItem')}
onMouseLeave={() => handleMouseLeave('PathItem')}
>
Expand Down

0 comments on commit 9cfa3cf

Please sign in to comment.