Closed mcaskill closed 2 years ago
Overall I like the idea of building re-usable components. I'm just not sure if the boilerplate is the best place to put these tools. I think a "playground/demo type" repo with all the components would be best. Since this repo is our project starter and that means we will have to clean/remove all unused components.
Closing in favour of moving this component to locomotivemtl/cookbook#7.
Add accessible modal dialog component and ordered z-index map to standardize the layering of our components.
Dialog Features:
data-modal-autoshow
attribute.data-modal-show-once
attribute.localStorage
, by default. This can be switched tosessionStoage
viadata-modal-show-once="session"
attribute value.Modal.hide
on all shown modals.Required:
Added:
Modal
that uses and enhances a11y-dialog..c-dialog
via partial '_modal.scss' with basic styles (adapted from vendor's example).data-module-modal
.$overlay-zindexes
: dropdown, sticky, fixed, offcanvas, modal, popover, tooltip, transition.overlay-zindex()
to fetch the z-index for the corresponding element (based on OZMap).Note:
overlay-zindex()
function and map. Maybeglobal-zindex
is a better term?