Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 7c33f7c

Browse files
authored
docs: Update frontmatter for material-io site (#876)
1 parent 0d73a60 commit 7c33f7c

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

packages/mdc-slider/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: "Sliders"
33
layout: detail
44
section: components
5+
excerpt: "A select over a range of values by moving the slider thumb."
56
iconId: slider
67
path: /catalog/input-controls/sliders/
78
-->
@@ -11,7 +12,7 @@ path: /catalog/input-controls/sliders/
1112
<!--<div class="article__asset">
1213
<a class="article__asset-link"
1314
href="https://material-components-web.appspot.com/slider.html">
14-
<img src="{{ site.rootpath }}/images/mdc_web_screenshots/sliders.png" width="400" alt="Select screenshot">
15+
<img src="{{ site.rootpath }}/images/mdc_web_screenshots/slider.png" width="400" alt="Select screenshot">
1516
</a>
1617
</div>-->
1718

@@ -187,7 +188,7 @@ use to build a custom MDCSlider component for their framework.
187188
| `getAttribute(name: string) => string?` | Returns the value of the attribute `name` on the root element, or `null` if that attribute is not present on the root element. |
188189
| `setAttribute(name: string, value: string) => void` | Sets an attribute `name` to the value `value` on the root element. |
189190
| `removeAttribute(name: string) => void` | Removes an attribute `name` from the root element |
190-
| `computeBoundingRect() => ClientRect` | Computes and returns the bounding client rect for the root element. Our implementations calls `getBoundingClientRect()`` for this. |
191+
| `computeBoundingRect() => ClientRect` | Computes and returns the bounding client rect for the root element. Our implementations calls `getBoundingClientRect()` for this. |
191192
| `getTabIndex() => number` | Returns the value of the `tabIndex` property on the root element |
192193
| `registerInteractionHandler(type: string, handler: EventListener) => void` | Adds an event listener `handler` for event type `type` to the slider's root element |
193194
| `deregisterInteractionHandler(type: string, handler: EventListener) => void` | Removes an event listener `handler` for event type `type` from the slider's root element |

packages/mdc-tabs/README.md

+21-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
<!--docs:
2+
title: "Tabs"
3+
layout: detail
4+
section: components
5+
excerpt: "A tabbed navigation component."
6+
iconId: tabs
7+
path: /catalog/tabs/
8+
-->
9+
110
# MDC Tabs
211

312
The MDC Tabs component contains components which are used to create spec-aligned tabbed navigation components adhering to the
@@ -7,6 +16,17 @@ The MDC Tabs component contains components which are used to create spec-aligned
716
- **mdc-tab-bar**: The main component which is composed of `mdc-tab` elements
817
- **mdc-tab-bar-scroller**: The component which controls the horizontal scrolling behavior of an `mdc-tab-bar` that overflows its container
918

19+
## Design & API Documentation
20+
21+
<ul class="icon-list">
22+
<li class="icon-list-item icon-list-item--spec">
23+
<a href="https://material.io/guidelines/components/tabs.html">Material Design guidelines: Tabs</a>
24+
</li>
25+
<li class="icon-list-item icon-list-item--link">
26+
<a href="http://material-components-web.appspot.com/tabs.html">Demo</a>
27+
</li>
28+
</ul>
29+
1030
## Installation
1131

1232
```
@@ -109,7 +129,7 @@ provides a minimal example of how to do so using JavaScript, also shown below.
109129

110130
#### Markup:
111131
```html
112-
<section id="dynamic-demo-toolbar">
132+
<section id="dynamic-demo-toolbar">
113133
<nav id="dynamic-tab-bar" class="mdc-tab-bar mdc-tab-bar--indicator-accent" role="tablist">
114134
<a role="tab" aria-controls="panel-1"
115135
class="mdc-tab mdc-tab--active" href="#panel-1">Item One</a>

0 commit comments

Comments
 (0)