lion/packages/overlays
CircleCI a993f8e33f chore: release new versions
- @lion/button@0.3.23
 - @lion/calendar@0.2.0
 - @lion/input-datepicker@0.2.0
 - @lion/option@0.2.0
 - @lion/overlays@0.6.0
 - @lion/popup@0.3.0
 - @lion/select-rich@0.3.0
 - @lion/tooltip@0.3.0
2019-10-10 15:21:46 +00:00
..
docs fix(overlays): fix contentNodes for local and global overlays 2019-09-27 16:17:58 +02:00
src feat(overlays): release new overlay system 2019-10-10 17:14:24 +02:00
stories feat(overlays): release new overlay system 2019-10-10 17:14:24 +02:00
test feat(overlays): release new overlay system 2019-10-10 17:14:24 +02:00
test-helpers feat(overlays): release new overlay system 2019-10-10 17:14:24 +02:00
translations fix: support Chinese language 2019-07-17 10:11:32 +02:00
CHANGELOG.md chore: release new versions 2019-10-10 15:21:46 +00:00
index.js feat(overlays): release new overlay system 2019-10-10 17:14:24 +02:00
package.json chore: release new versions 2019-10-10 15:21:46 +00:00
README.md feat(overlays): release new overlay system 2019-10-10 17:14:24 +02:00

Overlays System

Supports different types of overlays like dialogs, toasts, tooltips, dropdown, etc... Manages their position on the screen relative to other elements, including other overlays.

Features

How to use

Installation

npm i --save @lion/overlays

Example

import { overlays } from '@lion/overlays';

const myCtrl = overlays.add(
  new OverlayTypeController({
    /* options */
  }),
);
// name OverlayTypeController is for illustration purpose only
// please read below about existing classes for different types of overlays

Rationals

  • No aria-controls: as support for it is not quite there yet
  • No aria-haspopup People knowing the haspop up and hear about it dont expect a dialog to open (at this moment in time) but expect a sub-menu. Until support for the dialog value has better implementation, its probably best to not use aria-haspopup on the element that opens the modal dialog.