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 (
<div className={styles.dockTabs} ref={elem}>
<div className={styles.dockTabs} ref={elem} role="tablist">
<Tabs
autoFocus={autoFocus}
value={selectedTab}

View File

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