Problem/Motivation

On the Workspaces listing screen (/admin/config/workflow/workspaces), we currently try to show which workspace is currently active by highlighting its row in the table:

However, highlighting the row which contains the active workspace is very unclear and it doesn't really achieve its purpose.

Steps to reproduce

Enable the Workspaces module and navigate to /admin/config/workflow/workspaces.

Proposed resolution

This issue was discussed in a usability meeting on Jan 16th 2020 (see #3092553-6: Add a row for switching to the live workspace in the Workspaces listing UI), and the consensus was to replace the table row highlight with a strong emphasis on the workspace label, and add a (active) suffix.

Remaining tasks

Reviews.

User interface changes

Workspaces listing page with the proposed changes:

API changes

Nope.

Data model changes

Nope.

Release notes snippet

Nope.

Comments

amateescu created an issue. See original summary.

amateescu’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new4.42 KB
new42.3 KB

Here's a patch which applies only on top of #3092553: Add a row for switching to the live workspace in the Workspaces listing UI, not sending it to the testbot for now. However, the issue summary contains before/after screenshots, so the issue can be reviewed before that other one is committed.

mitthukumawat’s picture

StatusFileSize
new23.46 KB
new25.87 KB

The patch applied successfully and the active workspace indicating as expected.
Adding screenshots for reference.

mitthukumawat’s picture

Status: Needs review » Reviewed & tested by the community
amateescu’s picture

Status: Reviewed & tested by the community » Needs review

This patch depends on #3092553: Add a row for switching to the live workspace in the Workspaces listing UI so it can't be committed. Also, before/after screenshots were already posted in the issue summary.

The Needs Review status is only for accessibility review.

Version: 9.1.x-dev » 9.3.x-dev

Drupal 9.1.10 (June 4, 2021) and Drupal 9.2.10 (November 24, 2021) were the last bugfix releases of those minor version series. Drupal 9 bug reports should be targeted for the 9.3.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

lendude’s picture

The other issue has landed, so if I'm reading this right, we can now kick off the bot for this patch, let's see what it does

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.9 was released on December 7, 2022 and is the final full bugfix release for the Drupal 9.4.x series. Drupal 9.4.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.5.x-dev branch from now on, and new development or disruptive changes should be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

needs-review-queue-bot’s picture

Status: Needs review » Needs work
StatusFileSize
new141 bytes

The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

amateescu’s picture

Version: 9.5.x-dev » 10.1.x-dev
Status: Needs work » Needs review
Issue tags: -us
StatusFileSize
new4.04 KB

Rerolled the patch for 10.1.x. Still needs accessibility review...

amateescu’s picture

StatusFileSize
new4.04 KB
new543 bytes

Fixed that test failure, we need to keep the #title property on each row in the list builder because we use it in the off-canvas switcher.

nayana_mvr’s picture

StatusFileSize
new124.66 KB
new130.03 KB

Verified the patch #12 and tested it on Drupal version 10.1.x. The patch works fine. Now the active workspace row is highlighted with a strong emphasis on the workspace label, and add an (active) suffix. I have added the before and after screenshots for reference.

smustgrave’s picture

Status: Needs review » Needs work

Brought this up in the accessibility channel

From @rkoller

well a sighted user gets the success message that the workspace was changed successfully. for one in the upper right corner of the admin toolbar (showing the new active workspace) and within the success message box. in voiceover you got only announced the confirmation step do you want to change the workspace. after pressing cmd option space to click the confirm button you immediately get skip to main content announced. no success message. if i would only rely onto my ears it might be troubeling

Think we need to announce when a workspace is switched or announce the active one one.

rkoller’s picture

Took me a little longer than planned but i've created a few screenrecordings on macos 12.6.1 with safari 16.1 and voiceover to illustrate a few potential problems in the context of indicating which is the active workspace:

1. on one hand i agree with the assessment in [3092553-6] that grey as the highlighting color for the active workspace is sort of unclear. but on the other hand only providing text for labeling the active workspace requires that the user has to read. as sarah horton put it in "a web for everyone":

Use multiple cues: providing more than one cue for orientation helps both visual and verbal thinkers. for example, using an icon with color coding and a strong text label provides three ways to identify a page or a feature (Horton, S. "A Web for everyone". Rosenfeld Media. p93)

In the current state of the patch a user has to skim across the workspace name until (active) is reached there isn't no other visual cue anymore indicating the active workspace aside text.

2. i've recorded four videos on the workspaces list page. two videos, one tabbing through the interface and one ctrl option space clicking through the interface, with the live workspace active and the same two approaches with the stage workspace active.

live(tab - https://www.drupal.org/files/issues/2023-03-05/2%20stage%20tab.mp4)
as you can see due to the fact that Live (active)is plain text it is invisible for someone just tabbing through the focusable items. at the same time Live (active) isn't listed in any of the rotor sections either. in combination with point 3 it makes things for someone just tabbing challenging.

live (sequential with ctrl option arrow right - https://www.drupal.org/files/issues/2023-03-05/2%20live%20sequential.mp4)
when the user steps through the aural interface sequentially live (Action) is properly announced all good here.

staging (tab - https://www.drupal.org/files/issues/2023-03-05/2%20stage%20tab.mp4)
if you tab to switch to live it sounds like live is not active. if you go on tabbing you now hear just stage, meaning the stage workspace is not active and then you get to publish content which might indicate that the stage workspace IS active otherwise it wouldnt be possible to publish content. but for a screenreader user that is potentially confusing.

staging (sequential with ctrl option arrow right - https://www.drupal.org/files/issues/2023-03-05/2%20stage%20sequential.mp4)
when you step through the aural interface sequentially it is possible to understand the situation better. but due to the fact that the link element is just wrapped around the term stage, stage and (active) are announced separately. it isnt necessarily clear if they belong together. first stage is announced belonging to row 3 of 3 in column 1 of 3. for active that position isnt directly announced.

the next three points are not directly in the scope of this issue but definitely at least related.

3. in general it is difficult to assess the active workspace with a screenreader if the user is on a page != the workspaces list page. as you can see in the video (https://www.drupal.org/files/issues/2023-03-05/3%20admin%20toolbar%20wor...) the page title gives no indication and within the rotor in the links section you have just the term live without any context as illustrated in the devtools inspecting the link element in the end of the video.
it might be an option to add the context via a visually hidden span appending something like active workspace or maybe just workspace? in other sections of the rotor i was unable to find anything workspace related. or would it be also an idea to add an indication of the active workspace somewhere else as well? maybe append a visual hidden span to the page title providing the context there for active workspaces != live?

4. in regards of the announcement of the workspace switch i've recorded the two possible ways. first the switch via the switch to stage button on the workspace list page (https://www.drupal.org/files/issues/2023-03-05/4%20workspaces%20list%20s...).

  • i've clicked with ctrl option space the switch to stage button.
  • i immediately get announced skip to main content.
  • i click again ctrl option space as suggested.
  • now i get announced activate the. that made me insecure while being in a confirmation step. i've cheated and took a look and saw the text activate the stage workspace was there. i just pressed the tab key once.
  • i press ctrl option space again with the confirm button in focus.
  • but now instead of a success message that i'Ve successfully switched to the stage workspace i get the announcement that i could directly skip to main content?

*i've stopped the video too early but if i press ctrl option space again and jump to the main content the success message gets into focus but is not getting announced. that way the user doesn't know the switch was a success).

**and on another side note when switching from stage to live the message on the confirmation page ( Switch to the live version of the site) is completely announced. on the confirmation page for switching to the stage workspace only activate the is announced. the italic styling of stage is preventing that the whole sentence is announced at once.

5. i've opened the off canvas dialogue with ctrl option space (https://www.drupal.org/files/issues/2023-03-05/5%20off%20canvas%20switch...).

  • at first i notice that there isnt some sort of announcement that the interface was expanded. it is announced instead that there is a webspaces web dialogue. and the announcement is also a little hard to comprehend. i know i am on stage (is that a workspace as well?) then it gets announced that the current workspace is live and that there are other workspaces? but what are the other workspaces? there arent any announced. so i wonder is stage one of the "other" workspaces? and then comes all workspaces. over all packed and hard to digest information if i am only following the announcement and don't peek on the screen.
  • to illustrate a visual glitch i've noticed which is unrelated but odd and noteworthy i've pressed ctrl option arrow right now to get the view all workspaces link into focus. as soon as it gets into focus the layout changes? i've pressed ctrl option arrow left to get back to stage and pressed ctrl option space.
  • the modal i get to, compared to the situation in point 4, is completely clear and straight forward. i feel in control.
  • i press ctrl option space to confirm.
  • but then again same situation like in point 4. i get the announcement of skip to main content. the confirmation that the switch was successful is missing.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

rkoller’s picture

Issue tags: +wcag242

while writing up a comment to another issue in the workspaces queue i realized one detail that is missing for screenreader users. After a brief search i've rediscovered this one (already forgot it existed and i've already commented on)

One detail that might be considered to be added to the current MR which might help screenreader users tremendously is adding the active workspace to the title tag in the head. Currently the title is:

[h1] | [site name]

that might be change to:

[h1] | [active workspace] workspace | [site name]

so that you get for example when you are on /admin/structure/types when Stage is the active workspace

Content types | Stage workspace | My Drupal site

The title might become a bit verbose and lengthy but that way all the necessary information is frontloaded, LTR from the specific to the more general (the screen reader user is able to jump off at any point). that means first you have the h1 then the active workspace and then finally the site name. and since screenreaders get the page title announced when loading a page the overall context would be provided satisfying WCAG 2.2. SC 2.4.2. (i've added also the tag wcag242)

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.

rkoller’s picture

Issue tags: +wcag141

one addition, also adding SC 1.4.1 (the use of color.) just in the context of the table, color is the only way to distinguish the active workspace from the rest.

benjifisher’s picture

We discussed this issue at #3568606: Drupal Usability Meeting 2026-01-30. That issue will have a link to a recording of the meeting. I am adding issue credit for the participants: @pallavi singh3013, @rkoller, @simohell, and @the_g_bomb.

rkoller’s picture

Usability review

We discussed this issue at #3568606: Drupal Usability Meeting 2026-01-30. The recording of the meeting: https://youtu.be/80LmftxqFSk. The attendees at the usability meeting were @pallavi singh3013, @rkoller, @simohell, and @the_g_bomb.

We not really have anything to report yet. We did an initial exploration, me demoing the problem space this issue is about. And the group agreed on revisiting this issue in one of the next meetings to actually discuss potential recommendations.

The only questions that arose during the meeting were what would be the number of workspaces to expect on a site that is heavily using workspaces? Are we talking of 4 to 10 workspaces, dozens of workspaces, or could that number be even higher? And the other question is what is the expected number of levels? In my tests after the meeting I've created 6 levels of child workspaces, and it looked like there is no actual limit to the number of levels.

amateescu’s picture

what would be the number of workspaces to expect on a site that is heavily using workspaces?

On a large project that uses workspaces exclusively for editing various sections of their site, I'm seeing 130 in-progress workspaces and more than 1100 closed (published) ones :)

And the other question is what is the expected number of levels? In my tests after the meeting I've created 6 levels of child workspaces, and it looked like there is no actual limit to the number of levels.

That's correct, there's no limit to the number of levels, but in practice this feature is rarely used.

Thanks for looking into this!