Skip to content
This repository was archived by the owner on Oct 15, 2021. It is now read-only.
This repository was archived by the owner on Oct 15, 2021. It is now read-only.

Dialogs #20

Description

@dontpanicgr

Dialogs

Dialogs inform users about a task and can contain critical information, require decisions, or involve multiple tasks.
Also in this thread some early discussion took place about dialogs and system feedback overall.
#7 (comment)

This issue is posted due to recent ticket about navigating away from a plural string in the editor.

With this txds issue we will try to understand and find an appropriate, modular way to:

  1. Properly inform users on the outcome of an action (e.g. uncompleted work that is not saved and might be lost if navigating away from a component or page in the application.
  2. Provide easy to undestand navigation to confirm or dismiss a proposed action.

Example

Editor: Tab for navigating away from unsaved plural string

Transifex says
You have untranslated plural forms.
Your work will be lost. Are you sure you want to navigate away from this string?
[ Cancel ] [ OK ]

Action Behaviour Keyboard Key Result
Cancel Stay on this page Esc Work not lost
OK Leave this page Enter/Return Work lost

Component

Based on the above examples, we can discuss on the behaviour and structure of the dialog component which could look and work as follows:

Dialog title
You have {{unsaved_work}}.
Your work will be lost. Are you sure you want to {{user_action}}?
[ Cancel ] [ OK ]

Action Behaviour Keyboard Key Result
Cancel Stay on this page Esc Work not lost
OK Leave this page Enter/Return Work lost
Save * Stay on this page ... Save work

* optional


Screens:

screen shot 2018-05-21 at 15 15 31
screen shot 2018-05-21 at 15 16 14


Further reading:

https://material.io/design/components/dialogs.html#actions
https://ux.stackexchange.com/questions/83535/should-an-unsaved-changes-dialog-in-a-web-app-contain-a-save-option
http://designsystem.morningstar.com/components/dialogs.html
https://medium.com/ux-power-tools/design-a-reusable-system-modal-e358985cfeb6

Metadata

Metadata

Assignees

Labels

txdsCore issues regarding Tx Design SystemuxCovers user experience issues and functionality that needs further research and grooming

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions