Skip to content

Commit cfc2c09

Browse files
committed
fix submenu title role according to w3c validator
close ant-design/ant-design#20779
1 parent b1242f9 commit cfc2c09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/SubMenu.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,7 @@ export class SubMenu extends React.Component<SubMenuProps> {
562562
ref={this.saveSubMenuTitle}
563563
style={style}
564564
className={`${prefixCls}-title`}
565+
role="button"
565566
{...titleMouseEvents}
566567
{...titleClickEvents}
567568
aria-expanded={isOpen}

0 commit comments

Comments
 (0)