Skip to content

Abstract draggable drawer component.#23696

Merged
gmajoulet merged 1 commit intoampproject:masterfrom
gmajoulet:abstract_draggable
Aug 6, 2019
Merged

Abstract draggable drawer component.#23696
gmajoulet merged 1 commit intoampproject:masterfrom
gmajoulet:abstract_draggable

Conversation

@gmajoulet
Copy link
Copy Markdown
Contributor

This PR extracts the "draggable" part of the amp-story-page-attachment component to an abstract AMP component meant to be re-used.

amp-story-page-attachment now simply extends this abstract amp-story-draggable-drawer class, and overrides:

  • the buildCallback to add specific header items (title + close button)
  • the open/close methods to add analytics + browser history persistence

Part 1/2 for #13833

@gmajoulet gmajoulet requested review from Enriqe and newmuis August 5, 2019 19:58
Copy link
Copy Markdown
Contributor

@newmuis newmuis left a comment

Choose a reason for hiding this comment

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

This is awesome!

@gmajoulet gmajoulet force-pushed the abstract_draggable branch 3 times, most recently from 724df3b to 6028a61 Compare August 6, 2019 20:27
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.

4 participants