humaan / Modaal

An accessible dialog window library for all humans.
http://humaan.com/modaal/
MIT License
2.72k stars 183 forks source link

Use flexbox instead of table layout for greater flexibility #68

Open jsit opened 8 years ago

jsit commented 8 years ago

Using table layout comes with certain limitations, especially at extreme edge cases of viewport sizes/aspect ratios; e.g., the caption box is currently hidden if the viewport is too short vertically.

Using flexbox will make it easier to adapt to a wider range of viewport sizes/aspect ratios moving forward.

danhumaan commented 8 years ago

Thanks for your suggestion @jsit. While we understand flexbox is a more modern and desirable solution (for everyone, including ourselves), we made the decision to use the display: table structure so that we could provide the the greatest level of browser support while only having to maintain the one stylesheet.

We already have this improvement on our list for future releases, so please keep an eye out for that. At that stage we may table the option of introducing a legacy browser fallback stylesheet should anyone require it.