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

Create separate modal-dialog and tether-dialog components #79

Merged
merged 1 commit into from
Sep 10, 2015

Conversation

chrislopresto
Copy link
Contributor

  • Extract tether functionality into separate tether-dialog component
  • Use nested structure in modal-dialog component to support various scrolling/overlay use cases @sandstrom
  • Add example where scrolling the overlay scrolls the modal content @samselikoff @sandstrom
  • Unify target and attachment terminology with that of Hubspot Tether
  • Remove a bunch of normalization logic that had been providing backwards compatibility for usage patterns prior to the introduction of ember-tether


Pros and cons of each approach are detailed below.
- modal-dialog: Uses ember-wormhole to append the following nested divs to the destination element: wrapper div > overlay div > container div
- tether-dialog: Uses ember-tether to display modal container div. Uses ember-wormhole to append optional overlay div to the destination element. Requires separate installation of [ember-tether](//github.com/yapplabs/ember-tether) dependency.
Copy link
Contributor

Choose a reason for hiding this comment

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

A diagram would speak 1000 words here

@chrislopresto chrislopresto force-pushed the restructuring branch 2 times, most recently from e946a7a to 940df5e Compare September 7, 2015 22:16
- Extract tether functionality into separate tether-dialog component
- Use nested structure in modal-dialog component to support various scrolling/overlay use cases @sandstrom
- Add example where scrolling the overlay scrolls the modal content @samselikoff @sandstrom
- Unify target and attachment terminology with that of Hubspot Tether
- Remove a bunch of normalization logic that had been providing backwards compatibility for usage patterns prior to the introduction of ember-tether
- Add visual diagrams. Update README.
- Remove hasOverlay from modal-dialog component
lukemelia added a commit that referenced this pull request Sep 10, 2015
Create separate modal-dialog and tether-dialog components
@lukemelia lukemelia merged commit 01aa735 into master Sep 10, 2015
@lukemelia lukemelia deleted the restructuring branch September 10, 2015 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants