|
1 |
| -<daff-article> |
2 |
| - <h1 daffArticleTitle>Progress Bar</h1> |
3 |
| - <div daffArticleLead>A progress bar provides visual feedback about the duration or progress of a task or operation.</div> |
| 1 | +<h1>Progress Bar</h1> |
| 2 | +<div>A progress bar provides visual feedback about the duration or progress of a task or operation.</div> |
4 | 3 |
|
5 |
| - <h2>Types</h2> |
6 |
| - <p>There are two types of progress bars: <code>determinate</code> and <code>indeterminate</code>. They are <code>determinate</code> by default.</p> |
| 4 | +<h2>Types</h2> |
| 5 | +<p>There are two types of progress bars: <code>determinate</code> and <code>indeterminate</code>. They are <code>determinate</code> by default.</p> |
7 | 6 |
|
8 |
| - <h3>Determinate</h3> |
9 |
| - <p>Determinate progress bars should be used when the loading percentage of a task or operation is known.</p> |
10 |
| - <design-land-example-viewer-container example="progress-bar-default"></design-land-example-viewer-container> |
11 |
| - |
12 |
| - <h3>Indeterminate</h3> |
13 |
| - <p>Indeterminate progress bars should be used when the loading percentage of a task or operation is unknown or cannot be calculated.</p> |
14 |
| - <design-land-example-viewer-container example="progress-bar-indeterminate"></design-land-example-viewer-container> |
| 7 | +<h3>Determinate</h3> |
| 8 | +<p>Determinate progress bars should be used when the loading percentage of a task or operation is known.</p> |
| 9 | +<design-land-example-viewer-container example="progress-bar-default"></design-land-example-viewer-container> |
15 | 10 |
|
16 |
| - <h2>Theming</h2> |
17 |
| - <p> The progress bar color is defined by using the <code>color</code> property. By default, the color is set to <code>primary</code>. This can be changed to one of the supported colors.</p> |
18 |
| - <p>Supported colors: <code>primary | secondary | tertiary | theme | theme-contrast | white | black</code></p> |
| 11 | +<h3>Indeterminate</h3> |
| 12 | +<p>Indeterminate progress bars should be used when the loading percentage of a task or operation is unknown or cannot be calculated.</p> |
| 13 | +<design-land-example-viewer-container example="progress-bar-indeterminate"></design-land-example-viewer-container> |
19 | 14 |
|
20 |
| - <blockquote><code>theme</code>, <code>theme-contrast</code>, <code>white</code>, and <code>black</code> should be used with caution to ensure that there is sufficient contrast.</blockquote> |
| 15 | +<h2>Theming</h2> |
| 16 | +<p> The progress bar color is defined by using the <code>color</code> property. By default, the color is set to <code>primary</code>. This can be changed to one of the supported colors.</p> |
| 17 | +<p>Supported colors: <code>primary | secondary | tertiary | theme | theme-contrast | white | black</code></p> |
21 | 18 |
|
22 |
| - <design-land-example-viewer-container example="progress-bar-themes"></design-land-example-viewer-container> |
| 19 | +<blockquote><code>theme</code>, <code>theme-contrast</code>, <code>white</code>, and <code>black</code> should be used with caution to ensure that there is sufficient contrast.</blockquote> |
23 | 20 |
|
24 |
| - <h2>Accessibility</h2> |
25 |
| - The progress bar component works with the ARIA <code>role="progressbar"</code> to provide an accessible experience. A label should always be provided by using <code>label[daffFormLabel]</code>, <code>aria-label</code>, or <code>aria-labelledby</code>. |
26 |
| -</daff-article> |
| 21 | +<design-land-example-viewer-container example="progress-bar-themes"></design-land-example-viewer-container> |
| 22 | + |
| 23 | +<h2>Accessibility</h2> |
| 24 | +The progress bar component works with the ARIA <code>role="progressbar"</code> to provide an accessible experience. A label should always be provided by using <code>label[daffFormLabel]</code>, <code>aria-label</code>, or <code>aria-labelledby</code>. |
0 commit comments