Issue Task Closed

#95098Modals use semantically wrong declaration

Björn Jacob 09/03/21, 11:53 updated 10/04/22, 14:10

Description

I am aware of 4 wizards:

1. new content element wizard (page module)
2. translation wizard (page module)
3. new dashboard wizard
4. new form wizard

The severity of those modals and the primary buttons (if available) are declared as follows:

1. new content element wizard
  • modal: notice
  • button: n/a
2. translation wizard
  • modal: notice
  • button: info
3. new dashboard wizard
  • modal: notice
  • button: warning
4. new form wizard
  • modal: info
  • button: info
5. Show columns for page (introduced in v11)
  • modal: notice
  • button: info
7. install tool login
  • modal: warning
  • button: warning

The severities are described as follows:

  • notice: non-actionable statement
  • info: actionable statement
  • warning: negative connotation, something will “go wrong”
  • error: negative connotation, something “went already wrong”

This should be
a) fixed
b) somehow documented

Regarding a) IMHO the severity “info” would be the way to go since the modals require actions/ are actionable. As it can be seen in the new dashboard modal the severity is used for styling purposes:

dashboard.png

form-framework.png

show-columns-for-page.png

install-tool-login.png

This must never be the case. As we all know: form follows function (semantic) :).
That said, further adaptions to the styling of those severities could be made.

Reviews 1