Skip to content

Commit

Permalink
docs: replace Stardust UI mentions, clean up docs (#16369)
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter authored Jan 5, 2021
1 parent 3f63b36 commit 6ecc063
Show file tree
Hide file tree
Showing 10 changed files with 103 additions and 145 deletions.
3 changes: 0 additions & 3 deletions packages/fluentui/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ These guides will walk your through various activities for contributing:

Behaviors apply properties, focus handling and keyboard handlers to the component slots. When developing a component, the properties and keyboard handlers need to be spread to the corresponding slots.

For complete accessibility contributing guide, requirements and testing, see [Accessibility][2]

- [Role and aria props](#role-and-aria-props)
- [Focus](#focus)
- [Keyboard handling](#keyboard-handling)
Expand Down Expand Up @@ -181,7 +179,6 @@ I (@rymeskar) have been part of the FluentUI framework team for the past two mon
- For sustainable keyboard keys handling, one needs to map actions to [key presses](https://github.com/microsoft/fluentui/blob/5f9a800af3b0c94fa12d68f40d5d6a83a76e68c8/packages/fluentui/accessibility/src/behaviors/Accordion/accordionBehavior.ts#L18). Then within component code, one needs to [define handling](https://github.com/microsoft/fluentui/blob/5f9a800af3b0c94fa12d68f40d5d6a83a76e68c8/packages/fluentui/react-northstar/src/components/Accordion/Accordion.tsx#L140) of these actions.

[1]: https://nodejs.org/
[2]: https://github.com/stardust-ui/accessibility/blob/master/CONTRIBUTING.md
[3]: https://www.w3.org/TR/wai-aria-1.1/#usage_intro
[4]: https://www.w3.org/TR/wai-aria-1.1/#introstates
[5]: https://www.w3.org/TR/wai-aria-1.1/#landmark_roles
Expand Down
13 changes: 11 additions & 2 deletions packages/fluentui/docs/src/components/DocPage/DocPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ interface DocPageProps {
title: string;
description?: string;
children: React.ReactNode;
fluid?: boolean;
themeSwitcher?: React.ReactNode;
}

const PAGE_PADDING = '20px';
const DocPage = ({ title, themeSwitcher, children }: DocPageProps) => (
const DocPage = ({ title, themeSwitcher, children, fluid }: DocPageProps) => (
<>
<div
id="docs-sticky-header"
Expand All @@ -28,7 +29,15 @@ const DocPage = ({ title, themeSwitcher, children }: DocPageProps) => (
<Header as="h1" aria-level={2} content={title} style={{ margin: 0 }} variables={{ color: 'black' }} />
<DocumentTitle title={`Fluent UI - ${title}`} />
</div>
<div style={{ padding: '2rem', fontSize: '1.15rem', maxWidth: '100ch' }}>{children}</div>
<div
style={{
padding: '2rem',
fontSize: '1.15rem',
maxWidth: fluid ? undefined : '100ch',
}}
>
{children}
</div>
</>
);

Expand Down
9 changes: 0 additions & 9 deletions packages/fluentui/docs/src/components/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,6 @@ const baseTreeItems: TreeProps['items'] = [
to: '/icon-viewer',
},
},
{
id: 'component-architecture',
title: {
as: NavLink,
content: 'Component Architecture',
activeClassName: 'active',
to: '/component-architecture',
},
},
...(process.env.NODE_ENV !== 'production'
? [
{
Expand Down
49 changes: 0 additions & 49 deletions packages/fluentui/docs/src/pages/ComponentArchitecture.mdx

This file was deleted.

4 changes: 0 additions & 4 deletions packages/fluentui/docs/src/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { PerfDataProvider } from './components/ComponentDoc/PerfChart';
import * as Composition from './pages/Composition.mdx';
import * as Debugging from './pages/Debugging.mdx';
import * as Layout from './pages/Layout.mdx';
import * as ComponentArchitecture from './pages/ComponentArchitecture.mdx';
import * as StylesOverrides from './pages/StylesOverrides.mdx';
import Accessibility from './views/Accessibility';
import Colors from './views/Colors';
Expand Down Expand Up @@ -147,9 +146,6 @@ const Routes = () => (
<MarkdownPage page={ShorthandProps} />
</Route>
<Route exact path="/icon-viewer" component={IconViewer} />
<Route exact path="/component-architecture">
<MarkdownPage page={ComponentArchitecture} />
</Route>
<Route exact path="/theming-specification">
<MarkdownPage page={ThemingSpecification} />
</Route>
Expand Down
Loading

0 comments on commit 6ecc063

Please sign in to comment.