Skip to content

Commit

Permalink
Change amp-story-subscriptions attribute name to reflect its flexibil…
Browse files Browse the repository at this point in the history
…ity (#38176)
  • Loading branch information
ychsieh committed May 10, 2022
1 parent 3fe2ae4 commit 1a650fa
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions examples/amp-story/amp-story-subscriptions.html
Expand Up @@ -229,9 +229,9 @@ <h3>Cultral Experiences</h3>

<amp-story-subscriptions layout='container'
price='$0.50/week'
title='Information at your fingertips'
subtitle-first='Subscribe for unlimited access.'
subtitle-second='Cancel anytime.'>
headline='Information at your fingertips'
description='Subscribe for unlimited access.'
additional-description='Cancel anytime.'>
</amp-story-subscriptions>
</amp-story>>
</body>
Expand Down
6 changes: 3 additions & 3 deletions examples/visual-tests/amp-story/amp-story-subscriptions.html
Expand Up @@ -219,9 +219,9 @@ <h3>Cultral Experiences</h3>

<amp-story-subscriptions layout='container'
price='$0.50/week'
title='Information at your fingertips'
subtitle-first='Subscribe for unlimited access.'
subtitle-second='Cancel anytime.' publisher-button-text='Subscribe'>
headline='Information at your fingertips'
description='Subscribe for unlimited access.'
additional-description='Cancel anytime.'>
</amp-story-subscriptions>
</amp-story>>
</body>
Expand Down
Expand Up @@ -142,7 +142,7 @@ iframe.swg-dialog {
margin-bottom: 0.2em !important;
}

.i-amphtml-story-subscriptions-title {
.i-amphtml-story-subscriptions-headline {
display: block !important;
font-weight: 700 !important;
font-size: 1.15em !important;
Expand All @@ -152,7 +152,7 @@ iframe.swg-dialog {
margin: 0.4em 0 0.15em !important;
}

.i-amphtml-story-subscriptions-subtitle-first, .i-amphtml-story-subscriptions-subtitle-second {
.i-amphtml-story-subscriptions-description, .i-amphtml-story-subscriptions-additional-description {
display: block !important;
font-size: 0.9em !important;
letter-spacing: -0.015em !important;
Expand Down
Expand Up @@ -222,17 +222,17 @@ export class AmpStorySubscriptions extends AMP.BaseElement {
<span class="i-amphtml-story-subscriptions-price">
{this.element.getAttribute('price')}
</span>
{this.element.getAttribute('title') && (
<span class="i-amphtml-story-subscriptions-title">
{this.element.getAttribute('title')}
{this.element.getAttribute('headline') && (
<span class="i-amphtml-story-subscriptions-headline">
{this.element.getAttribute('headline')}
</span>
)}
<span class="i-amphtml-story-subscriptions-subtitle-first">
{this.element.getAttribute('subtitle-first')}
<span class="i-amphtml-story-subscriptions-description">
{this.element.getAttribute('description')}
</span>
{this.element.getAttribute('subtitle-second') && (
<span class="i-amphtml-story-subscriptions-subtitle-second">
{this.element.getAttribute('subtitle-second')}
{this.element.getAttribute('additional-description') && (
<span class="i-amphtml-story-subscriptions-additional-description">
{this.element.getAttribute('additional-description')}
</span>
)}
<button
Expand Down

0 comments on commit 1a650fa

Please sign in to comment.