Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amp-truncate-text: support custom actions. #22817

Merged
merged 3 commits into from Jun 25, 2019

Conversation

sparhami
Copy link

  • Rename "expand" slot into "collapsed", since it may be used to do something
    other than expand.
  • Rename "collapse" slot into "expanded", since it may be used to do something
    other than collapse.
  • Support custom tap actions as well as anchor tags, which will override
    the default expand/collapse behavior of the "collapsed" and "expanded"
    slots.
  • Add a "persistent" slot that is always present. This is useful when
    you have something like a short description (which may be truncated,
    depending on available space), but you want to link to another page
    regardless of truncation.

- Rename "expand" slot into "collapsed", since it may be used to do something
other than expand.
- Rename "collapse" slot into "expanded", since it may be used to do something
other than collapse.
- Support custom tap actions as well as anchor tags, which will override
the default expand/collapse behavior of the "collapsed" and "expanded"
slots.
- Add a "persistent" slot that is always present. This is useful when
you have something like a short description (which may be truncated,
depending on available space), but you want to link to another page
regardless of truncation.
@sparhami sparhami changed the title Support custom actions. amp-truncate-text: support custom actions. Jun 13, 2019
@sparhami sparhami requested a review from cvializ June 25, 2019 17:49
@sparhami sparhami marked this pull request as ready for review June 25, 2019 17:51
Copy link
Contributor

@cvializ cvializ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sparhami sparhami merged commit 273d0ab into ampproject:master Jun 25, 2019
thekorn pushed a commit to edelight/amphtml that referenced this pull request Sep 11, 2019
- Rename "expand" slot into "collapsed", since it may be used to do something
other than expand.
- Rename "collapse" slot into "expanded", since it may be used to do something
other than collapse.
- Support custom tap actions as well as anchor tags, which will override
the default expand/collapse behavior of the "collapsed" and "expanded"
slots.
- Add a "persistent" slot that is always present. This is useful when
you have something like a short description (which may be truncated,
depending on available space), but you want to link to another page
regardless of truncation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants