forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
696be6d
commit 1361e3e
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import * as React from 'react'; | ||
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; | ||
import * as pageProps from './custom-components.md?muiMarkdown'; | ||
|
||
export default function Page() { | ||
return <MarkdownDocs {...pageProps} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Callouts | ||
|
||
<p class="description">Type of callouts.</p> | ||
|
||
## Header chips | ||
|
||
{{"component": "modules/components/ComponentLinkHeader.js"}} | ||
|
||
## Feature list | ||
|
||
### Approach 1: Componentized | ||
|
||
Easier to protect the styles, but worse to read and write | ||
|
||
{{"component": "modules/components/FeatureList.js", "features": ["Manages modal stacking when one-at-a-time just isn't enough.", "Creates a backdrop, for disabling interaction below the modal.", "It disables scrolling of the page content while open.", "It properly manages focus; moving to the modal content, and keeping it there until the modal is closed.", "Adds the appropriate ARIA roles automatically."]}} | ||
|
||
### Approach 2: Plain HTML | ||
|
||
Easier to write and read, and potentially easier to violate the styles? | ||
|
||
<ul class='feature-list'> | ||
<li>Manages modal stacking when one-at-a-time just isn't enough.</li> | ||
<li>Creates a backdrop, for disabling interaction below the modal.est</li> | ||
<li>It disables scrolling of the page content while open.</li> | ||
<li>It properly manages focus; moving to the modal content, and keeping it there until the modal is closed.</li> | ||
<li>Adds the appropriate ARIA roles automatically.</li> | ||
</ul> |