Skip to content

Commit

Permalink
yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak committed Mar 28, 2022
1 parent bf0d06b commit 0e6d12c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 19 deletions.
9 changes: 4 additions & 5 deletions docs/data/base/components/tabs/KeyboardNavigation.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import * as React from 'react';
import { styled } from '@mui/system';
import TabsUnstyled from '@mui/base/TabsUnstyled';
import { buttonUnstyledClasses } from '@mui/base/ButtonUnstyled';
import TabsUnstyled from '@mui/base/TabsUnstyled';
import TabUnstyled, { tabUnstyledClasses } from '@mui/base/TabUnstyled';

import { TabsListUnstyled } from '@mui/base';
import TabsListUnstyled from '@mui/base/TabsListUnstyled';

const blue = {
50: '#F0F7FF',
Expand Down Expand Up @@ -70,7 +69,7 @@ const TabsList = styled(TabsListUnstyled)`
export default function AccessibleTabs1() {
return (
<div>
<p>Selection follows focus:</p>
<p>Selection following focus:</p>
<TabsUnstyled
defaultValue={0}
aria-label="Tabs where selection follows focus"
Expand All @@ -83,7 +82,7 @@ export default function AccessibleTabs1() {
</TabsList>
</TabsUnstyled>

<p>Default behavior:</p>
<p>Selection independent of focus (default behavior):</p>
<TabsUnstyled
defaultValue={0}
aria-label="Tabs where selection does not follow focus"
Expand Down
6 changes: 3 additions & 3 deletions docs/data/base/components/tabs/UnstyledTabsBasic.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ export default function UnstyledTabsBasic() {
<TabUnstyled>Two</TabUnstyled>
<TabUnstyled>Three</TabUnstyled>
</TabsListUnstyled>
<TabPanelUnstyled value={0}>First content</TabPanelUnstyled>
<TabPanelUnstyled value={1}>Second content</TabPanelUnstyled>
<TabPanelUnstyled value={2}>Third content</TabPanelUnstyled>
<TabPanelUnstyled value={0}>First page</TabPanelUnstyled>
<TabPanelUnstyled value={1}>Second page</TabPanelUnstyled>
<TabPanelUnstyled value={2}>Third page</TabPanelUnstyled>
</TabsUnstyled>
);
}
6 changes: 3 additions & 3 deletions docs/data/base/components/tabs/UnstyledTabsBasic.tsx.preview
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TabUnstyled>Two</TabUnstyled>
<TabUnstyled>Three</TabUnstyled>
</TabsListUnstyled>
<TabPanelUnstyled value={0}>First content</TabPanelUnstyled>
<TabPanelUnstyled value={1}>Second content</TabPanelUnstyled>
<TabPanelUnstyled value={2}>Third content</TabPanelUnstyled>
<TabPanelUnstyled value={0}>First page</TabPanelUnstyled>
<TabPanelUnstyled value={1}>Second page</TabPanelUnstyled>
<TabPanelUnstyled value={2}>Third page</TabPanelUnstyled>
</TabsUnstyled>
8 changes: 4 additions & 4 deletions docs/data/base/components/tabs/UnstyledTabsCustomized.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ export default function UnstyledTabsCustomized() {
return (
<TabsUnstyled defaultValue={0}>
<TabsList>
<Tab value={2}>One</Tab>
<Tab>One</Tab>
<Tab>Two</Tab>
<Tab>Three</Tab>
</TabsList>
<TabPanel value={2}>First content</TabPanel>
<TabPanel value={1}>Second content</TabPanel>
<TabPanel value={2}>Third content</TabPanel>
<TabPanel value={0}>First page</TabPanel>
<TabPanel value={1}>Second page</TabPanel>
<TabPanel value={2}>Third page</TabPanel>
</TabsUnstyled>
);
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<TabsUnstyled defaultValue={0}>
<TabsList>
<Tab value={2}>One</Tab>
<Tab>One</Tab>
<Tab>Two</Tab>
<Tab>Three</Tab>
</TabsList>
<TabPanel value={2}>First content</TabPanel>
<TabPanel value={1}>Second content</TabPanel>
<TabPanel value={2}>Third content</TabPanel>
<TabPanel value={0}>First page</TabPanel>
<TabPanel value={1}>Second page</TabPanel>
<TabPanel value={2}>Third page</TabPanel>
</TabsUnstyled>

0 comments on commit 0e6d12c

Please sign in to comment.