Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/components/site-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function ButtonToRun( { running, id, name }: Pick< SiteDetails, 'running' | 'id'
{ /* Circle */ }
<div
className={ cx(
'w-2.5 h-2.5 transition-opacity group-hover:opacity-0 group-focus:opacity-0 border-[0.5px]',
'w-2.5 h-2.5 transition-opacity group-hover:opacity-0 group-focus-visible:opacity-0 border-[0.5px]',
'row-start-1 col-start-1 place-self-center',
classCircle,
loadingServer[ id ] && 'animate-pulse border-[#00BA3775] bg-[#1ED15A75] duration-100',
Expand All @@ -84,7 +84,7 @@ function ButtonToRun( { running, id, name }: Pick< SiteDetails, 'running' | 'id'
{ ! loadingServer[ id ] && (
<div
className={ cx(
'opacity-0 transition-opacity group-hover:opacity-100 group-focus:opacity-100',
'opacity-0 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100',
'row-start-1 col-start-1 place-self-center'
) }
>
Expand All @@ -100,9 +100,9 @@ function SiteItem( { site }: { site: SiteDetails } ) {
return (
<li
className={ cx(
'flex flex-row min-w-[168px] h-8 hover:bg-[#ffffff0C] focus:bg-[#ffffff0C] rounded transition-all',

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The focus styles applied to the li element did not appear to have an impact, as the element is not focusable. The child button is the element focused when moving focus with the keyboard, which has its own focus styles with an outline.

'flex flex-row min-w-[168px] h-8 hover:bg-[#ffffff0C] rounded transition-all',
isMac() ? 'mx-5' : 'mx-4',
isSelected && 'bg-[#ffffff19] hover:bg-[#ffffff19] focus:bg-[#ffffff19]'
isSelected && 'bg-[#ffffff19] hover:bg-[#ffffff19]'
) }
>
<button
Expand Down