Pretty simple idea for a nice(?) tweak:
It is typical UI behaviour to grey out disabled elements.
What about adding this to Drupal menu edit screens?

Current UI

Proposed UI

In a small menu like this it's relatively easy to spot the disabled items, but in a big menu with longer text entries and especially with also entries, the default (disabled) marking of disabled entries does not stand out very well anymore.

For the screenshot above i used

tr.menu-disabled>td:first-child {
  filter: grayscale(100%) opacity(0.3);
}

Maybe the dragging-arrow would need to be left untouched
and surely the exact greying-out effect is TBD,
but before getting a thumbs-up/down i did not want to do anything more.

Comments

sirtet created an issue. See original summary.

sirtet’s picture

Issue summary: View changes
sirtet’s picture

StatusFileSize
new14.11 KB

One argument against the idea could be:
The above claim

It is typical UI behaviour to grey out disabled elements.

omits that typically also interaction is disabled with these greyed out elements.

But here, interaction is still possible (and also wanted).
Not being able to rearrange entries or follow links would be a loss of functionality.

So i still think the benefits of better visual clues justify to go against the convention of disabling interaction with greyed out elements.

sirtet’s picture

Maybe the dragging-arrow would need to be left untouched

I think leaving the handle dark is a step back compared to greying it out:

ckrina’s picture

Thanks for the suggestion, it looks like a really good idea to be implemented on several places!
- Have you checked if there's any existing pattern for that in Seven we can adapt?
- Also, have checked if it passes the minimum contrast?

sirtet’s picture

Thanks.
Yes, it also thought it might be interesting for other places.

No, i wanted to do no further research until i got some more Feedback from the makers of claro.

Waiting for more Input...

ckrina’s picture

Issue tags: +Needs design
ruthleopold’s picture

StatusFileSize
new70.81 KB

Having the text that light is not accessible, but we can modify that with the disabled color that is defined in the Drupal Design System, as well as make the text weight thin instead of regular. Without both, the disabled text does not look distinct from the normal text.
Figma: https://www.figma.com/file/NpZUAp8BEkMJvm5gKBCDBB/Claro?node-id=17227%3A...

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

indrajithkb’s picture

StatusFileSize
new4.84 KB

Hi @ruthleopold from your design it's showing color:#727780 (which we need to add as new variable)
we have the color variable for disable (--input--disabled-color: rgba(84, 85, 96, 0.6);) so which color can be used here ?

i have just check with this --input--disabled-color: rgba(84, 85, 96, 0.6); Please review the screenshot and confirm whether is ok or not.

check

ckrina’s picture

Issue tags: -Needs design

@indrajith-kb let's use the current disabled-color variable for now. This color will be updated soon together with the rest of greys in another issue, but for now let's keep it as the one we've been using so far.

indrajithkb’s picture

Assigned: Unassigned » indrajithkb
indrajithkb’s picture

Hi @ckrina thanks for the confirmation to use the color. I have added the patch please review.

Steps to reproduce:
- Go to Home > Administration > Structure > Menus
-Edit menu (here i used edit tools menu)

Attaching screenshots for refer:

Brfore:

before patch

After:

after patch

indrajithkb’s picture

Assigned: indrajithkb » Unassigned
Status: Active » Needs review
KondratievaS’s picture

StatusFileSize
new135.02 KB

Tested patch from #14 and result is OK

OK

KondratievaS’s picture

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

+1 to RTBC

lauriii’s picture

Status: Reviewed & tested by the community » Needs review
Issue tags: +Accessibility, +Needs accessibility review

The text doesn't comply with the color contrast requirements. According to https://webaim.org/articles/contrast/#incidental, inactive elements don't have to comply with the color contrast requirements. I'm a bit skeptical that this would fall into that category of the elements. Tagging for accessibility review to get input on that.

priyanka.sahni’s picture

Assigned: Unassigned » priyanka.sahni
priyanka.sahni’s picture

StatusFileSize
new61.96 KB
new311.89 KB
new69.9 KB
new341.55 KB

Verified and tested by applying the patch #13.Attaching the accessibility reports as well as per my understanding.

Before Patch -
Before Patch

Before Patch

After Patch -
After Patch

After Patch

After Patch

priyanka.sahni’s picture

StatusFileSize
new112 KB
priyanka.sahni’s picture

Assigned: priyanka.sahni » Unassigned
Issue summary: View changes
bnjmnm’s picture

Status: Needs review » Needs work
Issue tags: -Needs accessibility review

Lauri's concern in #18 was warranted. This needs to be a color that meets AA contrast requirements. The item being styled is definitely not incidental, and needs to have sufficient contrast. We can safely consider it not-incidental because 1) It is a link that is still clickable 2) It epresents a disabled menu item, but it's still possibl to configure that menu item, to do things such as enabling it.

This may be addressed in #3154539: Implement new Gray scale on Claro, but a text color should not have an rgba value. This removes the ability to easily check for contrast problems as the final text color is dependent on its background color. This probably also explains why the contrast problems were not identified in the automated checks in #20. I suspect they need to compare hex values.

komalk’s picture

Status: Needs work » Needs review
StatusFileSize
new356.97 KB
new361.33 KB
new3.77 KB
new2.28 KB

Review the patch.
Fixed the contrast error also attached the screenshot for the reference.

bnjmnm’s picture

Status: Needs review » Postponed

There's an entire issue devoted to the use of grays and their variables in Claro, I think #24 would potentially conflict with that. This should be postponed until that issue lands.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

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

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.

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.

Version: 9.5.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. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

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.

quietone’s picture

The Claro theme was approved for removal in #3576460: [policy, no patch] Deprecate and remove Claro.

The deprecation work is in #3576668: [meta] Tasks to deprecate Claro and the removal work in #3584638: [meta] Tasks to remove the Claro theme.

smustgrave’s picture

Project: Drupal core » Claro
Version: main » 3.0.x-dev
Component: Claro theme » Code
Status: Postponed » Postponed (maintainer needs more info)

Claro has moved to contrib

Wonder if this is something menu_ui should handle?