Skip to content
Prev Previous commit
Next Next commit
remove other approaches and focus go with the third
  • Loading branch information
danilo-leal committed Mar 14, 2024
commit a9cb93516132f937c6fbb8acc88c2e75ebac6c87
20 changes: 0 additions & 20 deletions docs/pages/experiments/docs/custom-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,6 @@

## 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>

### Approach 3: Custom markdown

<featureList>
- Manages modal stacking when one-at-a-time just isn't enough.
- Creates a backdrop, for disabling interaction below the modal.est
Expand Down
40 changes: 0 additions & 40 deletions docs/src/modules/components/FeatureList.js

This file was deleted.