Modal
The modal component can be used to overlay an area of the screen which can contain a prompt, dialog or interaction.
On p-modal
set display to display:flex
or display:none
to toggle the visibility of the modal.
Import
To import just this component into your project, copy the snippet below and include it in your main Sass file.
@import 'patterns_modal';
@include vf-p-modal;
For more information see Customising Vanilla in your projects, which includes overrides and importing instructions.
Design
For more information view the modal design spec which includes the specification in markdown format and a PNG image.