Skip to content

Commit 33a2845

Browse files
committed
fix(Tab): add id attribute, polish outline when focus
1 parent 3c0a212 commit 33a2845

File tree

1 file changed

+2
-1
lines changed
  • packages/orbit-components/src/Tabs/components/Tab

1 file changed

+2
-1
lines changed

packages/orbit-components/src/Tabs/components/Tab/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const Tab = ({
3535
"font-base font-medium",
3636
"rounded-t-100",
3737
"duration-fast transition-colors ease-in-out",
38-
"px-400",
38+
"px-400 focus:z-default",
3939
compact ? "text-normal py-[5px] leading-normal" : "text-large leading-large py-[9px]",
4040
disabled && "cursor-not-allowed opacity-50",
4141
!disabled && [
@@ -68,6 +68,7 @@ const Tab = ({
6868
onClick(ev);
6969
} else setSelected(index);
7070
}}
71+
id={`tab-${index}`}
7172
type="button"
7273
disabled={disabled}
7374
role="tab"

0 commit comments

Comments
 (0)