1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Adding tab role attributes

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-03-16 11:29:18 +03:00
parent 919e4e360b
commit 84e1bf3338
2 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,7 @@ export const DockTabs = ({ tabs, autoFocus, selectedTab, onChangeTab }: DockTabs
}); });
return ( return (
<div className={styles.dockTabs} ref={elem}> <div className={styles.dockTabs} ref={elem} role="tablist">
<Tabs <Tabs
autoFocus={autoFocus} autoFocus={autoFocus}
value={selectedTab} value={selectedTab}

View File

@ -137,6 +137,7 @@ export class Tab extends React.PureComponent<TabProps> {
onClick={this.onClick} onClick={this.onClick}
onFocus={this.onFocus} onFocus={this.onFocus}
onKeyDown={this.onKeyDown} onKeyDown={this.onKeyDown}
role="tab"
ref={this.ref} ref={this.ref}
> >
{typeof icon === "string" ? <Icon small material={icon}/> : icon} {typeof icon === "string" ? <Icon small material={icon}/> : icon}