Problem/Motivation

This problem got discovered by @kentr

With the content moderation module installed and set up for a content type the styling of the entity moderation form has no styling available for dark mode.

the entity moderation form in light mode for a draft called test
the entity moderation form in light mode for a draft called test

The entity moderation form in dark mode still uses a light background. that way all the four labels are light grey against a white background not meeting SC1.4.3 and some accent color in dark mode have a too low color contrast against the white background. the light pink for the apply button for example in the second screenshot has a contrast of of only 1.67:1 the required minimum is 3:1.

Steps to reproduce

  • go to admin/appearance/settings/default_admin</code and set the appearance to dark
  • go to admin/appearance and set the default admin theme as default and administration
  • Install content moderation
  • Create an article content type on admin/structure/types/add
  • go to admin/config/workflow/workflows/manage/editorial?destination=/admin/config/workflow/workflows and add the created content type to the list of content types in the "this workfllow applies to" section.
  • create a node for the newly created content type and set save it as draft in the advanced sidebar and save so you are getting forwarded to the newly created node in draft state in the front end.

Proposed resolution

  • Make sure the background for dark mode gets a dark background making it consistent with the dark mode in default admin.
  • Make sure that every label against the new dark background for the entity moderation form in dark mode has a color contrast of at least 4.5:1
  • Make sure that every form element against the new dark background for the entity moderation form in dark mode has a color contrast of at least 3:1

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
dark.jpg37.88 KBrkoller
light.jpg35.63 KBrkoller

Comments

rkoller created an issue. See original summary.

rkoller’s picture

Issue summary: View changes