fix: Back Button is Autofocused with No Margin in Modal (#4283)

This commit is contained in:
Piyush Gupta
2024-11-12 07:48:32 +05:30
committed by GitHub
parent c450c35baf
commit 9b191ef3e4

View File

@@ -43,7 +43,7 @@ export const EmbedView = ({
return (
<div className="h-full overflow-hidden">
{!disableBack && (
<div className="border-b border-slate-200 py-2">
<div className="border-b border-slate-200 py-2 pl-2">
<Button
variant="minimal"
className="focus:ring-0"
@@ -63,6 +63,7 @@ export const EmbedView = ({
variant="minimal"
key={tab.id}
onClick={() => setActiveId(tab.id)}
autoFocus={tab.id === activeId}
className={cn(
"rounded-md border px-4 py-2 text-slate-600",
// "focus:ring-0 focus:ring-offset-0", // enable these classes to remove the focus rings on buttons