Skip to content

Commit

Permalink
Fix rectangular focus indicators
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptronicek committed Nov 11, 2023
1 parent a036a30 commit dbd30f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/dashboard/src/components/PageWithSubMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ export const SubmenuItem: FC<SubmenuItemProps> = ({ title, link, icon }) => {
}
}, [link, location.pathname]);

let classes = "flex justify-between block py-2 px-4 rounded-md whitespace-nowrap max-w-52";
let classes = "flex justify-between block py-2 px-4 whitespace-nowrap max-w-52";

if (link.some((l) => l === location.pathname)) {
classes += " bg-gray-300 text-gray-800 dark:bg-gray-800 dark:text-gray-50";
} else {
classes += " hover:bg-gray-100 dark:hover:bg-gray-800";
}
return (
<Link to={link[0]} key={title} className="md:w-full">
<Link to={link[0]} key={title} className="md:w-full rounded-md">
<li ref={itemRef} className={classes}>
{title} {icon}
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function getConfigurationsMenu(id: string): SubmenuItemProps[] {
{
title: "General",
link: [base],
icon: <HelpCircle />,
icon: <HelpCircle size={20} />,
},
{
title: "Gitpod YAML",
Expand Down

0 comments on commit dbd30f7

Please sign in to comment.