Page MenuHomePhabricator

Add Storybook Documentation for Dialog Component
Closed, ResolvedPublic

Description

This Task Depends on T295874: Copy Dialog Component Code to WiKit

As we port the Dialog component to WiKit we need to make sure that all of its features are documented in WiKit's storybook. The initial content of the dialog is available in Figma (to be editable by the user)

A/C

  • Structure: the Dialog component has its own section is Storybook, called "Dialog". The section contains a "Complex" section displaying the "Complex" dialog.
  • Documentation: each prop and event are documented and controllable in storybook.
  • Behavior: users should be able to interact with the dialog. A button with the text "Open dialog" should allow users to trigger the display of the Dialog in case they closed it. (The component should be displayed by default)
  • Controls: users should be able to modify the copy of the title, the body and the button labels of the dialog. A secondary button/action might be optional.

Event Timeline