Skip to content

Conversation

@Westbrook
Copy link
Contributor

Description

Add an open attribute to the <overlay-trigger> element to declaratively outline which overlay content is open.

  • open = 'click' | 'hover' | 'longpress'
  • refactor existing stories to leverage
  • simplify open/close workflow

Related Issue

fixes #424

Motivation and Context

Elements should be usable in a declarative fashion.

How Has This Been Tested?

New unit tests and VRTs.

Types of changes

  • [c] New feature (non-breaking change which adds functionality)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@Westbrook Westbrook force-pushed the westbrook/declarative-overlay branch from 52bafff to bf32f11 Compare March 15, 2021 14:01
najikahalsema
najikahalsema previously approved these changes Mar 15, 2021
@Westbrook Westbrook force-pushed the westbrook/declarative-overlay branch 2 times, most recently from 0e87ad3 to c05b063 Compare March 16, 2021 23:49
cuberoot
cuberoot previously approved these changes Mar 17, 2021
Copy link
Contributor

@cuberoot cuberoot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet. I am happy with the API change. I had requested the ability to declaratively open a popover some time ago. I hadn't thought of this approach, but I think it will add flexibility.

@Westbrook Westbrook force-pushed the westbrook/declarative-overlay branch 3 times, most recently from 97143b5 to 40be896 Compare March 17, 2021 23:49
@Westbrook Westbrook force-pushed the westbrook/declarative-overlay branch from 40be896 to 02cacf9 Compare March 18, 2021 00:17
@Westbrook Westbrook merged commit 8a3353d into main Mar 18, 2021
@Westbrook Westbrook deleted the westbrook/declarative-overlay branch March 18, 2021 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add declarative API for controlling overlays manually

4 participants