diff --git a/ghdocs/components/Breadcrumb.md b/ghdocs/components/Breadcrumb.md
index 8d089812..98fb6b99 100644
--- a/ghdocs/components/Breadcrumb.md
+++ b/ghdocs/components/Breadcrumb.md
@@ -23,73 +23,70 @@ State | Applied to | Result
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
- ```
-
+
+ ```
+
- ```
+ ```
+
2. Copy the HTML from the sample above into your page. For example:
-
+ ```
3. Add the following `
+ ```
4. Verify that the component is working the same as in the sample above.
5. Replace the sample HTML content (such as the `.ms-Breadcrumb-listItem` elements) with your content.
@@ -99,9 +96,3 @@ ContextualMenu
## Accessibility
The component's JavaScript will apply the correct `tabindex` values to ensure keyboard accessibility.
-
-
-
\ No newline at end of file
diff --git a/ghdocs/components/Button.md b/ghdocs/components/Button.md
index fe387dc7..3dddcda0 100644
--- a/ghdocs/components/Button.md
+++ b/ghdocs/components/Button.md
@@ -57,41 +57,34 @@ State | Applied to | Result
## Using this component
1. Confirm that you have references to Fabric's CSS on your page:
- ```
+ ```
- ```
+ ```
+
2. Copy the HTML from one of the samples above into your page. For example:
-
+ ```
+
+ ```
3. Add the following `
+ ```
4. Replace the sample HTML content (such as the content of `.ms-Button-label`) with your content.
@@ -100,14 +93,3 @@ This component has no dependencies.
## Accessibility
Focus styles are included for keyboard navigation.
-
-
-
-
diff --git a/ghdocs/components/Callout.md b/ghdocs/components/Callout.md
index 7756882a..4db91cc8 100644
--- a/ghdocs/components/Callout.md
+++ b/ghdocs/components/Callout.md
@@ -63,74 +63,57 @@ This component has only the default state.
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
- ```
+ ```
- ```
+ ```
+
2. Copy the HTML from one of the samples above into your page. For example:
-
-
- <div class="ms-CalloutExample">
-
-
- <div class="ms-Callout
-
- is-hidden">
- <div class="ms-Callout-main">
- <div class="ms-Callout-header">
- <p class="ms-Callout-title">All of your favorite people</p>
- </div>
- <div class="ms-Callout-inner">
- <div class="ms-Callout-content">
- <p class="ms-Callout-subText ms-Callout-subText-- ">Message body is optional. If help documentation is available, consider adding a link to learn more at the bottom.</p>
- </div>
- <div class="ms-Callout-actions">
-
-
- <a class="ms-Link "
-
-
- >Learn more</a>
-
-
- </div>
- </div>
- </div>
- </div>
- <div class="ms-CalloutExample-button">
-
- <button class="ms-Button
-
- ">
- <span class="ms-Button-label">Open Callout</span>
- </button> </div>
-</div>
-
-
+ ```
+
+
+
+
+
All of your favorite people
+
+
+
+
Message body is optional. If help documentation is available, consider adding a link to learn more at the bottom.
+ ```
3. Add the following `
+ ```
3. Replace the sample HTML content (such as the content of `.ms-Callout-title`) with your content.
@@ -140,17 +123,3 @@ Button, Label, Link, ContextualHost, CommandButton
## Accessibility
Focus styles are included for all of the actions (links and buttons) included within a Callout.
-
-
diff --git a/ghdocs/components/CheckBox.md b/ghdocs/components/CheckBox.md
index 15f8aea4..e44e80af 100644
--- a/ghdocs/components/CheckBox.md
+++ b/ghdocs/components/CheckBox.md
@@ -20,46 +20,40 @@ State | Applied to | Result
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
- ```
+
+ ```
- ```
+ ```
+
2. Copy the HTML from one of the samples above into your page. For example:
-
+ ```
3. Add the following `
+ ```
4. Replace the sample HTML content (such as the content of `.ms-Label`) with your content.
@@ -68,11 +62,3 @@ Label
## Accessibility
Focus styles are included for these fields. Ensure that you use descriptive labels.
-
-
-
\ No newline at end of file
diff --git a/ghdocs/components/ChoiceFieldGroup.md b/ghdocs/components/ChoiceFieldGroup.md
index 99b3e9a3..48853d5c 100644
--- a/ghdocs/components/ChoiceFieldGroup.md
+++ b/ghdocs/components/ChoiceFieldGroup.md
@@ -14,93 +14,81 @@ Used to indicate a single choice from multiple options.
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
- ```
+
+ ```
- ```
+ ```
+
2. Copy the HTML from the sample above into your page. For example:
-
+ ```
3. Add the following `
+ ```
4. Replace the sample HTML content (such as the `.ms-Label` elements) with your content.
diff --git a/ghdocs/components/CommandBar.md b/ghdocs/components/CommandBar.md
index 08b3fb57..c1c3823c 100644
--- a/ghdocs/components/CommandBar.md
+++ b/ghdocs/components/CommandBar.md
@@ -30,150 +30,159 @@ State | Applied to | Result
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
- ```
+
+ ```
- ```
+ ```
+
2. Copy the HTML from the sample above into your page. For example:
-
+ ```
3. Add the following `
+ ```
4. Verify that the component is working the same as in the sample above.
5. Replace the sample HTML content (such as `.ms-CommandBarItem` elements) with your content.
@@ -184,11 +193,3 @@ This component has no dependencies.
## Accessibility
Refer to the sample code to see how `tabindex` attributes should be set to support keyboard navigation.
-
-
-
diff --git a/ghdocs/components/CommandButton.md b/ghdocs/components/CommandButton.md
index 865c2153..f0861418 100644
--- a/ghdocs/components/CommandButton.md
+++ b/ghdocs/components/CommandButton.md
@@ -70,52 +70,40 @@ State | Applied to | Result
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
- ```
+
+ ```
- ```
+ ```
+
2. Copy the HTML from one of the samples above into your page. For example:
-
+ ```
3. Replace the sample HTML content (such as the content of `.ms-CommandButton-label`) with your content.
4. If you are using any of CommandButton's variants that use a dropdown, the below JavaScript is required.
-
-
- <script type="text/javascript">
- var CommandButtonElements = document.querySelectorAll(".ms-CommandButton");
- for(var i = 0; i < CommandButtonElements.length; i++) {
- new fabric['CommandButton'](CommandButtonElements[i]);
- }
-</script>
-
-
-
-
-
+ ```
+
+ ```
## Dependencies
ContextualMenu, ContextualHost
## Accessibility
Focus styles are included for keyboard navigation.
-
-
-
diff --git a/ghdocs/components/ContextualMenu.md b/ghdocs/components/ContextualMenu.md
index f611fd66..05ddca76 100644
--- a/ghdocs/components/ContextualMenu.md
+++ b/ghdocs/components/ContextualMenu.md
@@ -47,60 +47,51 @@ State | Applied to | Result
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
- ```
+
+ ```
- ```
+ ```
+
2. Copy the HTML from one of the samples above into your page. For example:
-
+ ```
3. Add the following `
+ ```
4. Verify that the component is working the same as in the sample above.
5. Replace the sample HTML content (such as the `.ms-ContextualMenu-link` elements) with your content.
@@ -110,10 +101,3 @@ This component has no dependencies.
## Accessibility
More details will be added here.
-
-
-
\ No newline at end of file
diff --git a/ghdocs/components/DatePicker.md b/ghdocs/components/DatePicker.md
index 24a93779..52e25e8d 100644
--- a/ghdocs/components/DatePicker.md
+++ b/ghdocs/components/DatePicker.md
@@ -18,7 +18,8 @@ State | Applied to | Result
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page, as well as jQuery and PickaDate.js library:
- ```
+
+ ```
@@ -26,73 +27,66 @@ State | Applied to | Result
- ```
+ ```
+
2. Copy the HTML from one of the samples above into your page. For example:
-
+ Jan
+ Feb
+ Mar
+ Apr
+ May
+ Jun
+ Jul
+ Aug
+ Sep
+ Oct
+ Nov
+ Dec
+
+
+
+
+
+
+
+
+
+ ```
-3. Add the following `
+ ```
4. Verify that the component is working the same as in the sample above.
@@ -102,11 +96,3 @@ This component has no dependencies on other components. It does, however, requir
## Accessibility
More details will be added here.
-
-
-
diff --git a/ghdocs/components/Dialog.md b/ghdocs/components/Dialog.md
index 5ce4af2f..44b96c42 100644
--- a/ghdocs/components/Dialog.md
+++ b/ghdocs/components/Dialog.md
@@ -49,99 +49,79 @@ This component has only the default state.
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
- ```
+
+ ```
- ```
+ ```
+
2. Copy the HTML from one of the samples above into your page. For example:
-
Your Inbox has changed. No longer does it include favorites, it is a singular destination for your emails.
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ```
3. Add the following `
+ ```
+
+ or add the following `
+ ```
+
4. Verify that the component is working the same as in the sample above.
5. Replace the sample HTML content (such as the content of `.ms-Dialog-content`) with your content.
diff --git a/ghdocs/components/Dropdown.md b/ghdocs/components/Dropdown.md
index 85e49976..768a7b2f 100644
--- a/ghdocs/components/Dropdown.md
+++ b/ghdocs/components/Dropdown.md
@@ -22,47 +22,41 @@ State | Applied to | Result
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
- ```
+
+ ```
- ```
+ ```
+
2. Copy the HTML from the sample above into your page. For example:
-
+ ```
3. Add the following `
+ ```
4. Verify that the component is working the same as in the sample above.
5. Replace the sample HTML content (such as the options within `.ms-Dropdown-select`) with your content.
@@ -72,11 +66,3 @@ This component depends on Panel for when it is rendered on mobile.
## Accessibility
More details will be added here.
-
-
-
diff --git a/ghdocs/components/FacePile.md b/ghdocs/components/FacePile.md
index 59b58688..5799b406 100644
--- a/ghdocs/components/FacePile.md
+++ b/ghdocs/components/FacePile.md
@@ -17,718 +17,599 @@ State | Applied to | Result
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
- ```
+
+ ```
- ```
+ ```
+
2. Copy the HTML from the sample above into your page. For example:
-
+ ```
3. Add the following `
+ ```
4. Verify that the component is working the same as in the sample above.
5. Replace the sample HTML content with your content.
diff --git a/ghdocs/components/Label.md b/ghdocs/components/Label.md
index 0a32c25d..e57972ef 100644
--- a/ghdocs/components/Label.md
+++ b/ghdocs/components/Label.md
@@ -29,21 +29,19 @@ State | Applied to | Result
## Using this component
1. Confirm that you have references to Fabric's CSS on your page:
+
```
```
-2. Copy the HTML from one of the samples above into your page. For example:
-
-
-
-<label class="ms-Label ">Name</label>
+2. Copy the HTML from one of the samples above into your page. For example:
-
-
+ ```
+
+ ```
3. Replace the sample HTML content (such as the content of `.ms-Label`) with your content.
diff --git a/ghdocs/components/Link.md b/ghdocs/components/Link.md
index 03c8a618..1f799f8e 100644
--- a/ghdocs/components/Link.md
+++ b/ghdocs/components/Link.md
@@ -14,27 +14,21 @@ This component has only the default state.
## Using this component
1. Confirm that you have references to Fabric's CSS on your page:
+
```
```
+
2. Copy the HTML from one of the samples above into your page. For example:
-
-
- <div class="ms-font-m">
-
-
- <a class="ms-Link "
- href="#"
- title="More info about Example Link"
- >Example Link</a>
-
-</div>
-
-
+ ```
3. Replace the sample text with the text of your link.
diff --git a/ghdocs/components/List.md b/ghdocs/components/List.md
index c8818b2a..36c8f771 100644
--- a/ghdocs/components/List.md
+++ b/ghdocs/components/List.md
@@ -16,189 +16,143 @@ This component has only the default state.
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
- ```
+
+ ```
- ```
+ ```
+
2. Copy the HTML from the sample above into your page. For example:
-
-
-
-
-<ul class="ms-List ">
-
-
- <li class="ms-ListItem is-unread is-selectable" tabindex="0">
-
- <span class="ms-ListItem-primaryText">Alton Lafferty</span>
- <span class="ms-ListItem-secondaryText">Meeting notes</span>
- <span class="ms-ListItem-tertiaryText">Today we discussed the importance of a, b, and c in regards to d.</span>
- <span class="ms-ListItem-metaText">2:42p</span>
-
- <div class="ms-ListItem-selectionTarget"></div>
- <div class="ms-ListItem-actions">
-
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Mail"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Delete"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Flag"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Pinned"></i></div>
- </div>
- </li>
-
-
-
- <li class="ms-ListItem is-unread is-selectable" tabindex="0">
-
- <span class="ms-ListItem-primaryText">Alton Lafferty</span>
- <span class="ms-ListItem-secondaryText">Meeting notes</span>
- <span class="ms-ListItem-tertiaryText">Today we discussed the importance of a, b, and c in regards to d.</span>
- <span class="ms-ListItem-metaText">2:42p</span>
-
- <div class="ms-ListItem-selectionTarget"></div>
- <div class="ms-ListItem-actions">
-
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Mail"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Delete"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Flag"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Pinned"></i></div>
- </div>
- </li>
-
-
-
- <li class="ms-ListItem is-unread is-selectable" tabindex="0">
-
- <span class="ms-ListItem-primaryText">Alton Lafferty</span>
- <span class="ms-ListItem-secondaryText">Meeting notes</span>
- <span class="ms-ListItem-tertiaryText">Today we discussed the importance of a, b, and c in regards to d.</span>
- <span class="ms-ListItem-metaText">2:42p</span>
-
- <div class="ms-ListItem-selectionTarget"></div>
- <div class="ms-ListItem-actions">
-
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Mail"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Delete"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Flag"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Pinned"></i></div>
- </div>
- </li>
-
-
-
- <li class="ms-ListItem is-unread is-selectable" tabindex="0">
-
- <span class="ms-ListItem-primaryText">Alton Lafferty</span>
- <span class="ms-ListItem-secondaryText">Meeting notes</span>
- <span class="ms-ListItem-tertiaryText">Today we discussed the importance of a, b, and c in regards to d.</span>
- <span class="ms-ListItem-metaText">2:42p</span>
-
- <div class="ms-ListItem-selectionTarget"></div>
- <div class="ms-ListItem-actions">
-
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Mail"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Delete"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Flag"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Pinned"></i></div>
- </div>
- </li>
-
-
-
- <li class="ms-ListItem is-unread is-selectable" tabindex="0">
-
- <span class="ms-ListItem-primaryText">Alton Lafferty</span>
- <span class="ms-ListItem-secondaryText">Meeting notes</span>
- <span class="ms-ListItem-tertiaryText">Today we discussed the importance of a, b, and c in regards to d.</span>
- <span class="ms-ListItem-metaText">2:42p</span>
-
- <div class="ms-ListItem-selectionTarget"></div>
- <div class="ms-ListItem-actions">
-
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Mail"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Delete"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Flag"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Pinned"></i></div>
- </div>
- </li>
-
-
-
- <li class="ms-ListItem is-selectable" tabindex="0">
-
- <span class="ms-ListItem-primaryText">Alton Lafferty</span>
- <span class="ms-ListItem-secondaryText">Meeting notes</span>
- <span class="ms-ListItem-tertiaryText">Today we discussed the importance of a, b, and c in regards to d.</span>
- <span class="ms-ListItem-metaText">2:42p</span>
-
- <div class="ms-ListItem-selectionTarget"></div>
- <div class="ms-ListItem-actions">
-
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Mail"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Delete"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Flag"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Pinned"></i></div>
- </div>
- </li>
-
-
-
- <li class="ms-ListItem is-selectable" tabindex="0">
-
- <span class="ms-ListItem-primaryText">Alton Lafferty</span>
- <span class="ms-ListItem-secondaryText">Meeting notes</span>
- <span class="ms-ListItem-tertiaryText">Today we discussed the importance of a, b, and c in regards to d.</span>
- <span class="ms-ListItem-metaText">2:42p</span>
-
- <div class="ms-ListItem-selectionTarget"></div>
- <div class="ms-ListItem-actions">
-
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Mail"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Delete"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Flag"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Pinned"></i></div>
- </div>
- </li>
-
-
-
- <li class="ms-ListItem is-selectable" tabindex="0">
-
- <span class="ms-ListItem-primaryText">Alton Lafferty</span>
- <span class="ms-ListItem-secondaryText">Meeting notes</span>
- <span class="ms-ListItem-tertiaryText">Today we discussed the importance of a, b, and c in regards to d.</span>
- <span class="ms-ListItem-metaText">2:42p</span>
-
- <div class="ms-ListItem-selectionTarget"></div>
- <div class="ms-ListItem-actions">
-
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Mail"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Delete"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Flag"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Pinned"></i></div>
- </div>
- </li>
-
-</ul>
-
-
-
+ ```
+
+
+ Alton Lafferty
+ Meeting notes
+ Today we discussed the importance of a, b, and c in regards to d.
+ 2:42p
+
+
+
+
+
+
+
+
+
+
+ Alton Lafferty
+ Meeting notes
+ Today we discussed the importance of a, b, and c in regards to d.
+ 2:42p
+
+
+
+
+
+
+
+
+
+
+ Alton Lafferty
+ Meeting notes
+ Today we discussed the importance of a, b, and c in regards to d.
+ 2:42p
+
+
+
+
+
+
+
+
+
+
+ Alton Lafferty
+ Meeting notes
+ Today we discussed the importance of a, b, and c in regards to d.
+ 2:42p
+
+
+
+
+
+
+
+
+
+
+ Alton Lafferty
+ Meeting notes
+ Today we discussed the importance of a, b, and c in regards to d.
+ 2:42p
+
+
+
+
+
+
+
+
+
+
+ Alton Lafferty
+ Meeting notes
+ Today we discussed the importance of a, b, and c in regards to d.
+ 2:42p
+
+
+
+
+
+
+
+
+
+
+ Alton Lafferty
+ Meeting notes
+ Today we discussed the importance of a, b, and c in regards to d.
+ 2:42p
+
+
+
+
+
+
+
+
+
+
+ Alton Lafferty
+ Meeting notes
+ Today we discussed the importance of a, b, and c in regards to d.
+ 2:42p
+
+
+
+
+
+
+
+
+
+ ```
3. Add the following `
+ ```
4. Replace the content with whatever you'd like to display as a list. The samples use `.ms-ListItem` components, but you can place any content within `.ms-List`.
@@ -207,11 +161,3 @@ This component has no dependencies on other components, although it does often c
## Accessibility
You can use a `ul` element if your content is unordered, or `ol` if the order of the content is important.
-
-
-
\ No newline at end of file
diff --git a/ghdocs/components/ListItem.md b/ghdocs/components/ListItem.md
index cf5ad30c..de2a6536 100644
--- a/ghdocs/components/ListItem.md
+++ b/ghdocs/components/ListItem.md
@@ -40,6 +40,7 @@ Use `is-unread` to indicate that the item has not been read.
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
+
```
@@ -47,45 +48,35 @@ Use `is-unread` to indicate that the item has not been read.
```
+
2. Copy the HTML from one of the samples above into your page. For example:
-
-
-
-
-<li class="ms-ListItem " tabindex="0">
-
- <span class="ms-ListItem-primaryText">Alton Lafferty</span>
- <span class="ms-ListItem-secondaryText">Meeting notes</span>
- <span class="ms-ListItem-tertiaryText">Today we discussed the importance of a, b, and c in regards to d.</span>
- <span class="ms-ListItem-metaText">2:42p</span>
-
- <div class="ms-ListItem-selectionTarget"></div>
- <div class="ms-ListItem-actions">
-
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Mail"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Delete"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Flag"></i></div>
- <div class="ms-ListItem-action"><i class="ms-Icon ms-Icon--Pinned"></i></div>
- </div>
-</li>
-
-
-
-
+ ```
+
+ Alton Lafferty
+ Meeting notes
+ Today we discussed the importance of a, b, and c in regards to d.
+ 2:42p
+
+
+
+
+
+
+
+
+ ```
3. Add the following `
+ ```
4. Verify that the component is working the same as in the sample above.
5. Replace the sample HTML content (such as the content of `.ms-ListItem-primaryText`) with your content.
@@ -95,11 +86,3 @@ This component has no dependencies on other components, although it is most ofte
## Accessibility
More details will be added here.
-
-
-
diff --git a/ghdocs/components/MessageBanner.md b/ghdocs/components/MessageBanner.md
index ac3e7801..bdae597b 100644
--- a/ghdocs/components/MessageBanner.md
+++ b/ghdocs/components/MessageBanner.md
@@ -14,6 +14,7 @@ This component has only the default state.
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
+
```
@@ -23,64 +24,55 @@ This component has only the default state.
```
2. Copy the HTML from the sample above into your page. For example:
-
-
- <div class="docs-MessageBannerExample">
-
-
- <div class="ms-MessageBanner">
- <div class="ms-MessageBanner-content">
- <div class="ms-MessageBanner-text">
- <div class="ms-MessageBanner-clipper">
- You've reached your total storage on OneDrive. Please upgrade your storage plan if you need more storage.
- </div>
- </div>
- <button class="ms-MessageBanner-expand">
- <i class="ms-Icon ms-Icon--ChevronDown"></i>
- </button>
- <div class="ms-MessageBanner-action">
-
- <button class="ms-Button
- ms-Button--primary
- ">
- <span class="ms-Button-label">Get More Storage</span>
- </button>
- </div>
- </div>
- <button class="ms-MessageBanner-close">
- <i class="ms-Icon ms-Icon--Clear"></i>
- </button>
- </div>
- <button class="ms-Button docs-MessageBannerExample-button is-hidden">Show the banner</button>
-</div>
-
-
+ ```
+
+
+
+
+
+ You've reached your total storage on OneDrive. Please upgrade your storage plan if you need more storage.
+
+
+
+
+
+
+
+ Get More Storage
+
+
+
+
+
+
+
+ Show the banner
+
+ ```
3. Add the following `
+ ```
4. Verify that the component is working the same as in the sample above.
5. Replace the sample HTML content (such as the text in `.ms-MessageBanner-action`) with your content.
@@ -88,23 +80,3 @@ This component has only the default state.
## Dependencies
This component has a dependency on Button.
-
-
\ No newline at end of file
diff --git a/ghdocs/components/MessageBar.md b/ghdocs/components/MessageBar.md
index 0705ef28..75cc3fd0 100644
--- a/ghdocs/components/MessageBar.md
+++ b/ghdocs/components/MessageBar.md
@@ -52,6 +52,7 @@ Use sparingly when there's an exceptional need to tell the use that something we
## Using this component
1. Confirm that you have references to Fabric's CSS on your page:
+
```
@@ -60,24 +61,19 @@ Use sparingly when there's an exceptional need to tell the use that something we
```
2. Copy the HTML from one of the samples above into your page. For example:
-
-
-
-
-<div class="ms-MessageBar ">
- <div class="ms-MessageBar-content">
- <div class="ms-MessageBar-icon">
- <i class="ms-Icon ms-Icon--Info"></i>
- </div>
- <div class="ms-MessageBar-text">
- Lorem ipsum dolor sit amet, a elit sem interdum consectetur adipiscing elit.<br>
- <a href="" class="ms-Link">Hyperlink string</a>
- </div>
- </div>
-</div>
-
-
-
+ ```
+
+
+
+
+
+
+ Lorem ipsum dolor sit amet, a elit sem interdum consectetur adipiscing elit.
+ Hyperlink string
+
+
+
+ ```
3. Verify that the component is working the same as in the sample above.
4. Replace the sample HTML content (such as the content of `.ms-MessageBar-text`) with your content.
diff --git a/ghdocs/components/OrgChart.md b/ghdocs/components/OrgChart.md
index 1e5f29a3..20a7ffd2 100644
--- a/ghdocs/components/OrgChart.md
+++ b/ghdocs/components/OrgChart.md
@@ -12,177 +12,147 @@ Displays multiple Persona components in groups with headers in order to show the
## Using this component
1. Confirm that you have references to Fabric's CSS on your page:
+
```
```
-2. Copy the HTML from the samples above into your page. For example:
-
-
+ ```
3. Replace the Persona components with your own.
diff --git a/ghdocs/components/Overlay.md b/ghdocs/components/Overlay.md
index 000d3443..4e8807fd 100644
--- a/ghdocs/components/Overlay.md
+++ b/ghdocs/components/Overlay.md
@@ -17,6 +17,7 @@ Partially obscures the page to create a modal experience and focus the user's at
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
+
```
@@ -24,20 +25,21 @@ Partially obscures the page to create a modal experience and focus the user's at
```
+
2. Copy the HTML from one of the samples above into your page. For example:
+
```
```
+
3. Add the following `
+ ```
3. Replace the sample HTML content (such as the content of `.ms-Button-label`) with your content.
diff --git a/ghdocs/components/Panel.md b/ghdocs/components/Panel.md
index 2c3e6778..bcf9e1f4 100644
--- a/ghdocs/components/Panel.md
+++ b/ghdocs/components/Panel.md
@@ -41,6 +41,7 @@ State | Applied to | Result
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
+
```
@@ -48,63 +49,44 @@ State | Applied to | Result
```
+
2. Copy the HTML from the sample above into your page. For example:
-
+ ```
3. Add the following `
+ ```
4. Verify that the component is working the same as in the sample above.
5. Replace the sample HTML content (such as the content of `.ms-Panel-content`) with your content.
-
-
-
\ No newline at end of file
diff --git a/ghdocs/components/PeoplePicker.md b/ghdocs/components/PeoplePicker.md
index f71bcfcf..871cc4a8 100644
--- a/ghdocs/components/PeoplePicker.md
+++ b/ghdocs/components/PeoplePicker.md
@@ -27,6 +27,7 @@ Presents the selected people in a list below the search field, rather than inlin
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
+
```
@@ -34,129 +35,100 @@ Presents the selected people in a list below the search field, rather than inlin
```
+
2. Copy the HTML from one of the samples above into your page. For example:
-
+ ```
3. Add the following `
+ ```
4. Verify that the component is working the same as in the sample above.
5. Replace the sample HTML content with your content.
@@ -165,10 +137,3 @@ Presents the selected people in a list below the search field, rather than inlin
This component uses Persona and PersonaCard to display people and Label for the Members List variant. It also uses a Spinner when searching for results.
-
-
diff --git a/ghdocs/components/Persona.md b/ghdocs/components/Persona.md
index ebb9d7d9..67ded41e 100644
--- a/ghdocs/components/Persona.md
+++ b/ghdocs/components/Persona.md
@@ -38,53 +38,36 @@ A persona can have one of seven presences: available, away, blocked, busy, do no
```
+
2. Copy the HTML from one of the samples above into your page. For example:
-
+ ```
3. Add the following `
+ ```
4. Replace the sample HTML content (such as the name within `.ms-Persona-primaryText`) with your content.
## Dependencies
This component has no dependencies.
-
-
-
-
diff --git a/ghdocs/components/PersonaCard.md b/ghdocs/components/PersonaCard.md
index c2cb2303..e63f1154 100644
--- a/ghdocs/components/PersonaCard.md
+++ b/ghdocs/components/PersonaCard.md
@@ -11,6 +11,7 @@ The visualization of details of an individual including Skype contact details, e
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
+
```
@@ -18,255 +19,208 @@ The visualization of details of an individual including Skype contact details, e
```
+
2. Copy the HTML from one of the samples above into your page. For example:
-
3. Add the following `
+ ```
4. Verify that the component is working the same as in the sample above.
5. Replace the sample HTML content with your content.
## Dependencies
This component uses a Persona component to present the person, an OrgChart to present the persona's position within the organization, and a Link for navigation.
-
-
-
\ No newline at end of file
diff --git a/ghdocs/components/Pivot.md b/ghdocs/components/Pivot.md
index 03c7f05a..f012d8a3 100644
--- a/ghdocs/components/Pivot.md
+++ b/ghdocs/components/Pivot.md
@@ -29,6 +29,7 @@ A layout component that allows a user to switch between different sets of conten
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
+
```
@@ -36,65 +37,50 @@ A layout component that allows a user to switch between different sets of conten
```
+
2. Copy the HTML from one of the samples above into your page. For example:
-
-
-
-
-<div class="ms-Pivot ">
- <ul class="ms-Pivot-links">
- <li class="ms-Pivot-link is-selected" data-content="files" title="My files" tabindex="1">
- My files
- </li>
- <li class="ms-Pivot-link " data-content="recent" title="Recent" tabindex="1">
- Recent
- </li>
- <li class="ms-Pivot-link " data-content="shared" title="Shared with me" tabindex="1">
- Shared with me
- </li>
- <li class="ms-Pivot-link" tabindex="1">
- <i class="ms-Pivot-ellipsis ms-Icon ms-Icon--More"></i>
- </li>
- </ul>
- <div class="ms-Pivot-content" data-content="files">
- This is the my files tab.
- </div>
- <div class="ms-Pivot-content" data-content="recent">
- This is the recent tab.
- </div>
- <div class="ms-Pivot-content" data-content="shared">
- This is the shared with me tab.
- </div>
-</div>
-
-
-
+ ```
+
+
+
+ My files
+
+
+ Recent
+
+
+ Shared with me
+
+
+
+
+
+
+ This is the my files tab.
+
+
+ This is the recent tab.
+
+
+ This is the shared with me tab.
+
+
+ ```
3. Add the following `
+ ```
4. Verify that the component is working the same as in the sample above.
5. Replace the sample HTML content (such as the name within `.ms-Pivot-link`) with your content.
## Dependencies
This component has no dependency on other components.
-
-
-
diff --git a/ghdocs/components/ProgressIndicator.md b/ghdocs/components/ProgressIndicator.md
index 6ed297d6..a2ecf66b 100644
--- a/ghdocs/components/ProgressIndicator.md
+++ b/ghdocs/components/ProgressIndicator.md
@@ -33,6 +33,7 @@ Error
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
+
```
@@ -40,43 +41,36 @@ Error
```
-2. Copy the HTML from the sample above into your page. For example:
-
-
-
-
-<div class="ms-ProgressIndicator">
- <div class="ms-ProgressIndicator-itemName"></div>
- <div class="ms-ProgressIndicator-itemProgress">
- <div class="ms-ProgressIndicator-progressTrack"></div>
- <div class="ms-ProgressIndicator-progressBar"></div>
- </div>
- <div class="ms-ProgressIndicator-itemDescription"></div>
-</div>
+2. Copy the HTML from the sample above into your page. For example:
-
-
+ ```
+
+
+
+
+
+
+
+
+ ```
3. Add the following `
+ ```
4. Verify that the component is working the same as in the sample above.
@@ -85,18 +79,3 @@ This component has no dependency on other components.
## Accessibility
Focus styles are included for all of the actions included within a Progress Indicator.
-
-
-
-
diff --git a/ghdocs/components/SearchBox.md b/ghdocs/components/SearchBox.md
index 557d5648..46a21d1e 100644
--- a/ghdocs/components/SearchBox.md
+++ b/ghdocs/components/SearchBox.md
@@ -26,6 +26,7 @@ A special form field that allows for the input of search text.
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
+
```
@@ -33,54 +34,38 @@ A special form field that allows for the input of search text.
```
+
2. Copy the HTML from one of the samples above into your page. For example:
-
+ ```
3. Add the following `
+ ```
4. Verify that the component is working the same as in the sample above.
5. Replace the sample HTML content (such as the name within `.ms-SearchBox-text`) with your content.
## Dependencies
This component has a dependency on the Label component.
-
-
-
-
diff --git a/ghdocs/components/Spinner.md b/ghdocs/components/Spinner.md
index c8f73207..e496333e 100644
--- a/ghdocs/components/Spinner.md
+++ b/ghdocs/components/Spinner.md
@@ -29,6 +29,7 @@ Displays the progress of an operation when the percentage complete can not be de
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
+
```
@@ -36,52 +37,31 @@ Displays the progress of an operation when the percentage complete can not be de
```
-2. Copy the HTML from the sample above into your page. For example:
-
-
-
-
-<div class="ms-Spinner ">
-</div>
+2. Copy the HTML from the sample above into your page. For example:
-
-
+ ```
+
+ ```
3. Add the following `
+ ```
4. Verify that the component is working the same as in the sample above.
## Dependencies
This component has no dependency on other components.
-
-
-
\ No newline at end of file
diff --git a/ghdocs/components/Table.md b/ghdocs/components/Table.md
index 19f7a46b..8281a989 100644
--- a/ghdocs/components/Table.md
+++ b/ghdocs/components/Table.md
@@ -26,6 +26,7 @@ Rows can be selected.
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
+
```
@@ -33,83 +34,76 @@ Rows can be selected.
```
+
2. Copy the HTML from the sample above into your page. For example:
-
+ ```
3. Add the following `
+ ```
4. Replace the content with your own data. You can add more rows or columns.
@@ -117,10 +111,3 @@ Rows can be selected.
This component has no dependency on other components.
-
-
diff --git a/ghdocs/components/TextField.md b/ghdocs/components/TextField.md
index 14d9b0f3..ebe7c827 100644
--- a/ghdocs/components/TextField.md
+++ b/ghdocs/components/TextField.md
@@ -37,6 +37,7 @@ Allows for the input of text. Can be a single line or multiple lines. Typically
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
+
```
@@ -44,34 +45,26 @@ Allows for the input of text. Can be a single line or multiple lines. Typically
```
-2. Copy the HTML from one of the samples above into your page. For example:
-
-
-
-
-<div class="ms-TextField ">
- <label class="ms-Label">Name</label>
- <input class="ms-TextField-field" type="text" value="" placeholder="" >
-
-
-</div>
+2. Copy the HTML from one of the samples above into your page. For example:
-
-
+ ```
+
+
+
+
+ ```
3. Add the following `
+ ```
4. Update the `.ms-Label` to contain your label text.
diff --git a/ghdocs/components/Toggle.md b/ghdocs/components/Toggle.md
index c2536383..6d3afab7 100644
--- a/ghdocs/components/Toggle.md
+++ b/ghdocs/components/Toggle.md
@@ -23,6 +23,7 @@ Allows for turning on or off a setting. This is best suited for simple, singular
## Using this component
1. Confirm that you have references to Fabric's CSS and JavaScript on your page:
+
```
@@ -30,46 +31,32 @@ Allows for turning on or off a setting. This is best suited for simple, singular
```
-2. Copy the HTML from one of the samples above into your page. For example:
-
-
-
-
-<div class="ms-Toggle ">
- <span class="ms-Toggle-description">Let apps use my location</span>
- <input type="checkbox" id="demo-toggle-3" class="ms-Toggle-input" />
- <label for="demo-toggle-3" class="ms-Toggle-field" tabindex="0" >
- <span class="ms-Label ms-Label--off">Off</span>
- <span class="ms-Label ms-Label--on">On</span>
- </label>
-</div>
+2. Copy the HTML from one of the samples above into your page. For example:
-
-
+ ```
+
+ Let apps use my location
+
+
+
+ ```
3. Add the following `
+ ```
4. Update the `.ms-Label` to contain your label text.
## Dependencies
This component has a dependency on the Label component.
-
-
-
\ No newline at end of file
diff --git a/src/components/MessageBanner/MessageBanner.ts b/src/components/MessageBanner/MessageBanner.ts
index 989fde23..a528514e 100644
--- a/src/components/MessageBanner/MessageBanner.ts
+++ b/src/components/MessageBanner/MessageBanner.ts
@@ -53,10 +53,31 @@ namespace fabric {
/**
* shows banner if the banner is hidden
*/
- public showBanner(): void {
+ public show(): void {
this._errorBanner.className = "ms-MessageBanner";
}
+ /**
+ * shows banner if the banner is hidden (deprecated)
+ */
+ public showBanner(): void {
+ this.show();
+ }
+
+ /**
+ * hides banner when close button is clicked
+ */
+ public hide(): void {
+ if (this._errorBanner.className.indexOf("hide") === -1) {
+ this._errorBanner.className += " hide";
+ setTimeout(this._hideMessageBanner.bind(this), 500);
+ }
+ }
+
+ private _hideMessageBanner(): void {
+ this._errorBanner.className = "ms-MessageBanner is-hidden";
+ }
+
/**
* sets styles on resize
*/
@@ -137,27 +158,13 @@ namespace fabric {
}
}
- private _hideMessageBanner(): void {
- this._errorBanner.className = "ms-MessageBanner is-hidden";
- }
-
- /**
- * hides banner when close button is clicked
- */
- private _hideBanner(): void {
- if (this._errorBanner.className.indexOf("hide") === -1) {
- this._errorBanner.className += " hide";
- setTimeout(this._hideMessageBanner.bind(this), 500);
- }
- }
-
/**
* sets handlers for resize and button click events
*/
private _setListeners(): void {
window.addEventListener("resize", this._onResize.bind(this), false);
this._chevronButton.addEventListener("click", this._toggleExpansion.bind(this), false);
- this._closeButton.addEventListener("click", this._hideBanner.bind(this), false);
+ this._closeButton.addEventListener("click", this.hide.bind(this), false);
}
}
} // end fabric namespace
diff --git a/src/documentation/pages/Components/MessageBanner/MessageBanner.js b/src/documentation/pages/Components/MessageBanner/MessageBanner.js
index a384a0a3..897d050c 100644
--- a/src/documentation/pages/Components/MessageBanner/MessageBanner.js
+++ b/src/documentation/pages/Components/MessageBanner/MessageBanner.js
@@ -15,9 +15,14 @@ var data = {
description: "Initializes component"
},
{
- name: "showBanner()",
+ name: "show()",
parameters: [],
description: "Shows MessageBanner if hidden"
+ },
+ {
+ name: "showBanner()",
+ parameters: [],
+ description: "Shows MessageBanner if hidden, (deprecated) now use show()"
}
],
jsFile: "MessageBannerExampleJS"