TheWebTech / CrankShaft

A framework for building modern websites on the HubSpot Platform.
https://thewebtech.github.io/CrankShaft
MIT License
46 stars 17 forks source link

Add Modals #71

Open TheWebTech opened 5 years ago

TheWebTech commented 5 years ago

Modals are a common UI

I think we should have a standard modal we implement.

Initially we could role with just using Magnific or something but long term I'd like to use native modals <dialog> because they come with automatic accessibility and semantic benefits. Additional accessibility stuff: https://github.com/edenspiekermann/a11y-dialog

We should have a class or something that when that element is clicked triggers the modal.

CSS for this should go in cs-defaults.css