From: Marius Olbertz Date: Tue, 25 Apr 2017 05:30:51 +0000 (+0200) Subject: Use button as Reveal toggle in docs. X-Git-Tag: v6.4.0-rc1~56^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fbf25b1d6b720ca2befddb3718abf627ceaeaed6;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Use button as Reveal toggle in docs. Substituted links with buttons to have semantically correct tag usage. As those toggles do not lead to a new page they should be buttons. --- diff --git a/docs/pages/reveal.md b/docs/pages/reveal.md index a1a6f0365..9b8f6decb 100644 --- a/docs/pages/reveal.md +++ b/docs/pages/reveal.md @@ -32,7 +32,7 @@ To create a modal, add the class `.reveal`, the attribute `data-reveal`, and a u You'll also need a way to open the modal. Add the attribute `data-open` to any element. The value of `data-open` should be the ID of the modal. ```html_example -

Click me for a modal

+

``` You'll also need a way to *close* the modal from inside. By default, modals will close if clicked outside of, or if the esc key is pressed. However, you'll generally also want to add your own click trigger. Add the attribute `data-close` to any element within the modal to add one. @@ -64,7 +64,7 @@ The size of a modal can be changed with these sizing classes, which are added to ``` -

Click me for a tiny modal

+

OH I'M SO TIIINY

@@ -73,7 +73,7 @@ The size of a modal can be changed with these sizing classes, which are added to
-

Click me for a small modal

+

I may be small, but I've got a big heart!

@@ -82,7 +82,7 @@ The size of a modal can be changed with these sizing classes, which are added to
-

Click me for a large modal

+

I'm big, like bear!

@@ -98,13 +98,13 @@ The size of a modal can be changed with these sizing classes, which are added to It's possible for modals to open other modals. Create a second modal with a unique ID, and then add a click trigger with `data-open` inside the first modal. ```html_example -

Click me for a modal

+

Awesome!

I have another modal inside of me!

- Click me for another modal! + @@ -126,7 +126,7 @@ It's possible for modals to open other modals. Create a second modal with a uniq A full-screen modal is 100% of the width *and* height of the window. Add the `.full` class to make it go. ```html_example -

Click me for a full-screen modal

+

OH I'M SO FUUUUL

@@ -144,7 +144,7 @@ A full-screen modal is 100% of the width *and* height of the window. Add the `.f To remove the overlay, add the attribute `data-overlay="false"` to the modal. ```html_example -

Click me for an overlay-lacking modal

+

I feel so free!

@@ -161,7 +161,7 @@ To remove the overlay, add the attribute `data-overlay="false"` to the modal. To use animations from the Motion UI library, include the data-animation-in="someAnimationIn" and data-animation-out="someAnimationOut" attributes. ```html_example -

Click me for a modal

+

Whoa, I'm dizzy!

@@ -195,7 +195,7 @@ $.ajax('/url') Modals by default are accessible through the use of various ARIA attributes. To make a modal even more accessible, designate a label to the modal by adding `aria-labelledby="exampleModalHeader11"` to the container and `id="exampleModalHeader11"` to the elment you want to designate as the label. ```html_example -

Click me for a modal

+

Label for the Modal!