Wrong focus ring on Help Dropdown (#5049)
Co-authored-by: gitstart <gitstart@users.noreply.github.com> Co-authored-by: Nitesh Singh <nitesh.singh@gitstart.dev> Co-authored-by: Rafael Toledo <87545086+Toledodev@users.noreply.github.com> Co-authored-by: Rubens Rafael <70234898+RubensRafael@users.noreply.github.com> Co-authored-by: Murilo Amaral <87545137+MuriloAmarals@users.noreply.github.com> Co-authored-by: MuriloAmarals <muralha2000@gmail.com> Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com> Co-authored-by: gitstart <gitstart@gitstart.com> Co-authored-by: Rafael <rafael.toledo@engenharia.ufjf.br> Co-authored-by: Grace Nshokano <grace.devolop@gmail.com> Co-authored-by: Matheus Muniz <matheusmuniz100@hotmail.com> Co-authored-by: Júlio Piubello da Silva Cabral <julio.piubello@gitstart.dev> Co-authored-by: Matheus Muniz <87545749+matheusmuniz03@users.noreply.github.com> Co-authored-by: Matheus Benini Ferreira <88898100+MatheusBeniniF@users.noreply.github.com> Co-authored-by: C000Ldude <coolmagnas@gmail.com> Co-authored-by: Klinger Matheus <50892465+KlingerMatheus@users.noreply.github.com> Co-authored-by: Eman <emmanuelgatwech@gmail.com> Co-authored-by: Alan <alannnc@gmail.com>pull/5063/head
parent
06732c5c6d
commit
c1b41d8251
|
@ -233,7 +233,7 @@ function UserDropdown({ small }: { small?: boolean }) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Dropdown open={menuOpen} onOpenChange={() => setHelpOpen(false)}>
|
<Dropdown open={menuOpen}>
|
||||||
<DropdownMenuTrigger asChild onClick={() => setMenuOpen(true)}>
|
<DropdownMenuTrigger asChild onClick={() => setMenuOpen(true)}>
|
||||||
<button className="group flex w-full cursor-pointer appearance-none items-center rounded-full p-2 text-left outline-none hover:bg-gray-100 sm:pl-3 md:rounded-none lg:pl-2">
|
<button className="group flex w-full cursor-pointer appearance-none items-center rounded-full p-2 text-left outline-none hover:bg-gray-100 sm:pl-3 md:rounded-none lg:pl-2">
|
||||||
<span
|
<span
|
||||||
|
@ -280,7 +280,10 @@ function UserDropdown({ small }: { small?: boolean }) {
|
||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
<DropdownMenuPortal>
|
<DropdownMenuPortal>
|
||||||
<DropdownMenuContent
|
<DropdownMenuContent
|
||||||
onInteractOutside={() => setMenuOpen(false)}
|
onInteractOutside={() => {
|
||||||
|
setMenuOpen(false);
|
||||||
|
setHelpOpen(false);
|
||||||
|
}}
|
||||||
className="overflow-hidden rounded-md">
|
className="overflow-hidden rounded-md">
|
||||||
{helpOpen ? (
|
{helpOpen ? (
|
||||||
<HelpMenuItem onHelpItemSelect={() => onHelpItemSelect()} />
|
<HelpMenuItem onHelpItemSelect={() => onHelpItemSelect()} />
|
||||||
|
@ -338,10 +341,10 @@ function UserDropdown({ small }: { small?: boolean }) {
|
||||||
<Icon.FiMap className="h-4 w-4 text-gray-500 ltr:mr-2 rtl:ml-3" /> {t("visit_roadmap")}
|
<Icon.FiMap className="h-4 w-4 text-gray-500 ltr:mr-2 rtl:ml-3" /> {t("visit_roadmap")}
|
||||||
</a>
|
</a>
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>
|
||||||
<button
|
<button
|
||||||
className="flex w-full items-center px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900"
|
onClick={() => setHelpOpen(true)}
|
||||||
onClick={() => setHelpOpen(true)}>
|
className="flex w-full items-center px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900">
|
||||||
<Icon.FiHelpCircle
|
<Icon.FiHelpCircle
|
||||||
className={classNames(
|
className={classNames(
|
||||||
"text-gray-500 group-hover:text-neutral-500",
|
"text-gray-500 group-hover:text-neutral-500",
|
||||||
|
@ -352,7 +355,7 @@ function UserDropdown({ small }: { small?: boolean }) {
|
||||||
|
|
||||||
{t("help")}
|
{t("help")}
|
||||||
</button>
|
</button>
|
||||||
|
</DropdownMenuItem>
|
||||||
<DropdownMenuItem>
|
<DropdownMenuItem>
|
||||||
<a
|
<a
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
|
Loading…
Reference in New Issue