Skip to content
Yin Zhang edited this page Aug 15, 2014 · 30 revisions

Modal dialogs in Cockpit should have consistent behavior. These are the Human Interface Guidelines for dialogs.

Look

Dialogs should be implemented as Patternfly modals.

This section is incomplete...

Behavior

  • Disable affirmative button when dialog has invalid contents or the content is empty.
  • Support enter key for input fields and primary buttons in the dialog.
    1. The primary button is the button used for finishing the function of the dialog.
    2. If there is only one input field, pressing enter key behaves the same as clicking the primary button.
    3. If there are more than one input field, pressing enter key moves the focus from the previous input field to the next one,
  • ...

This section is incomplete...

Clone this wiki locally