Skip to content

Commit fdbd6fd

Browse files
committed
Revert "fix: remove unnecessary role attributes from tab-related buttons"
This reverts commit 4c68273.
1 parent 4c68273 commit fdbd6fd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/TabNavList/AddButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const AddButton = React.forwardRef<HTMLButtonElement, AddButtonProps>((props, re
1818
<button
1919
ref={ref}
2020
type="button"
21+
role='tab'
2122
className={`${prefixCls}-nav-add`}
2223
style={style}
2324
aria-label={locale?.addAriaLabel || 'Add tab'}

src/TabNavList/TabNode.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ const TabNode: React.FC<TabNodeProps> = props => {
126126
{removable && (
127127
<button
128128
type="button"
129+
role="tab"
129130
aria-label={removeAriaLabel || 'remove'}
130131
tabIndex={active ? 0 : -1}
131132
className={`${tabPrefix}-remove`}

0 commit comments

Comments
 (0)