Modal
The modal component, prefixed by gds-modal
, is the standard pop-up element for accepting user input. For a transparent backdrop behind the modal window, gds-modal
should be wrapped in a gds-modal__overlay
element.
To show the modal, add gds-modal--shown
to gds-modal__overlay
.
Demo
Error Log
State
gds-modal--shown
Size
gds-modal__header--sm
Add Ons
gds-modal__title
gds-modal__header
gds-modal__close-button
gds-modal__body
gds-modal__footer
gds-modal__overlay
gds-modal__form
Context (Color)
gds-modal--dark
gds-modal__header--dark
gds-modal__footer--dark
gds-modal__header--gradient
gds-modal__header--primary
gds-modal__header--secondary
gds-modal__header--tertiary
gds-modal__header--quaternary