From 621993b644c620b41da817c76b20d378616833f7 Mon Sep 17 00:00:00 2001 From: dgash Date: Fri, 5 Feb 2016 11:41:55 -0800 Subject: [PATCH] Copy edit Spelling, grammar, punctuation, markdown formatting; no significant content changes. --- extensions/amp-lightbox/amp-lightbox.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/extensions/amp-lightbox/amp-lightbox.md b/extensions/amp-lightbox/amp-lightbox.md index 671a71cb71a3..f5c0beaca088 100644 --- a/extensions/amp-lightbox/amp-lightbox.md +++ b/extensions/amp-lightbox/amp-lightbox.md @@ -14,17 +14,15 @@ See the License for the specific language governing permissions and limitations under the License. --> -### `amp-lightbox` +## `amp-lightbox` -The `amp-lightbox` component allows for a “lightbox” or similar experience - where upon user interaction a component expands to fill the viewport, until it is closed again by the user. +The `amp-lightbox` component allows for a “lightbox” or similar experience where, on user interaction, a component expands to fill the viewport until it is closed by the user. -#### Behavior +### Behavior -The `amp-lightbox` component defines the child elements that will be displayed in a full-viewport overlay. It is triggered to take up the viewport when the user taps or clicks on an element with `on` attribute that targets `amp-lightbox` element’s `id`. +The `amp-lightbox` component defines the child elements that are displayed in a full-viewport overlay. It is triggered to take up the viewport when the user taps or clicks an element with an `on` attribute that targets the `amp-lightbox` element’s `id`. -#####Closing the lightbox -Pressing the escape key on the keyboard will close the lightbox. -Alternatively setting the `on` attribute on one or more elements within the lightbox and setting it's method to `close` will close the lightbox when the element is tapped or clicked. +Pressing the `escape` key closes the lightbox. Alternatively, setting the `on` attribute on one or more elements within the lightbox to `close` closes the lightbox when the element is tapped or clicked. Example: ```html @@ -37,6 +35,6 @@ Example: ``` -#### Styling +### Styling The `amp-lightbox` component can be styled with standard CSS.