$customHeader
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14

APPROVED DESIGN IN PROGRESS IMPLEMENTATION PENDING

A modal is an element that overlays the main window. It creates a mode where the main window is disabled and non-interactive, while remaining visible. The modal presents a dialog box to the user. Users must interact with the modal in order to return to the main window.

Current properties and variants

  • renderHeaderCloseButton: True / False

  • renderDefaultCloseButton: True / False

  • Sizes

    • Small: max-width = 300px

    • Default: max-width = 500px

    • Large: max-width = 800px

    • Extra Large: max-width = 1140px


This proposal is for adding new properties and then using those to offer preconfigured Alert Dialog and Confirmation Dialog components.

🌳 New Properties, Variants and Behaviors

When set to True the height of the modal will be capped at 80% the height of the viewport and modal content will scroll inside the dialog.

Note: ensure that scroll behavior in the dialog uses inertial scrolling (https://css-tricks.com/snippets/css/momentum-scrolling-on-ios-overflow-elements/)

When set to False, if the modal would exceed the height of the viewport it will scroll along the whole page

Pearson’s Modal component articulates these options well: https://uxframework.pearson.com/c/modal#behavior

Allow for additional text or markup to be added to the left of modal actions

For a non-scrolling modal that exceeds the height of the viewport make the X button sticky to the top of viewport.

Previously named “Fleximodal” add a size that makes the modal full screen. A fullscreen modal should force the Scrolling option to true. See Fullscreen Modal.


Updated Standard Modal

https://www.figma.com/file/dJr5ixCRKlXiuA4BsKxAk3/Design-System-Workspace?node-id=3992%3A30222

Footer Row Text

https://www.figma.com/file/dJr5ixCRKlXiuA4BsKxAk3/Design-System-Workspace?node-id=3992%3A33268

Scrollable Standard Modal

https://www.figma.com/file/dJr5ixCRKlXiuA4BsKxAk3/Design-System-Workspace?node-id=3992%3A32524

Large Modal

https://www.figma.com/file/dJr5ixCRKlXiuA4BsKxAk3/Design-System-Workspace?node-id=3992%3A32818

Large Modal Sample

https://www.figma.com/file/dJr5ixCRKlXiuA4BsKxAk3/Design-System-Workspace?node-id=3992%3A32886

Mobile

https://www.figma.com/file/dJr5ixCRKlXiuA4BsKxAk3/Design-System-Workspace?node-id=3992%3A33420

Preconfigured modal components

Using the new property options above, create the following components:


đź›  Resources

https://www.figma.com/file/uAtSeYHUSUrjb0F93ohTtR/Low-fi?node-id=251%3A276

  • No labels