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:
parent
919e4e360b
commit
84e1bf3338
@ -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}
|
||||||
|
|||||||
@ -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}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user