Origami Frontend Components & Services

Demos: o-overlay

Modal overlay

Standard modal. Includes a close button in the top left so the user can dismiss the overlay.

Modal fullscreen overlay

Fullscreen modal. The user can dismiss the overlay with the close button or back button.

Modal without close button

Modal without a dismiss button in the top right. This should be used where the user has to make a choice or confirm they've seen something.

An overlay that is nested in the page

O-overlay can also be used to create overlays that don't sit in the front centre of the screen but appear in a specific area.

<div class="content">
      <div class="blur left">
        <h2>What is Lorem Ipsum?</h2>
          Lorem Ipsum is simply dummy text of the printing and typesetting
          industry. Lorem Ipsum has been the industry&apos;s standard dummy text ever
          since the 1500s, when an unknown printer took a galley of type and
          scrambled it to make a type specimen book. It has survived not only
          five centuries, but also the leap into electronic typesetting,
          remaining essentially unchanged. It was popularised in the 1960s with
          the release of Letraset sheets containing Lorem Ipsum passages, and
          more recently with desktop publishing software like Aldus PageMaker
          including versions of Lorem Ipsum.

        <h2>Why do we use it?</h2>
          It is a long established fact that a reader will be distracted by the
          readable content of a page when looking at its layout. The point of
          using Lorem Ipsum is that it has a more-or-less normal distribution of
          letters, as opposed to using &apos;Content here, content here&apos;, making it
          look like readable English. Many desktop publishing packages and web
          page editors now use Lorem Ipsum as their default model text, and a
          search for &apos;lorem ipsum&apos; will uncover many web sites still in their
          infancy. Various versions have evolved over the years, sometimes by
          accident, sometimes on purpose (injected humour and the like).
      <div class="right-rail">
        <p>Hello! this is the right rail</p>
Switch component view

GitHub Repository

Install o-overlay

If using the Build Service, add o-overlay@^4.0.0 to your script and link tags.

If using the npm package manager for a Manual Build, run npm install --save-peer "@financial-times/o-overlay@^4.0.0".

Help & Support

o-overlay is maintained directly by the Origami team. If you have any questions about o-overlay or Origami in general, we are happy to help. 😊

Slack: #origami-support
Email: origami.support@ft.com

Feedback / Issues

To report a bug or request features please create an issue on Github. For support or general feedback please get in touch 😊

Slack: #origami-support
Email: origami.support@ft.com