Problem/Motivation

The Block module uses vertical tabs to present visibility settings on the block form.

For example, on /admin/structure/block/manage/olivero_site_branding

This has been broken since #3467860: Ensure consistent ordering when calculating library asset order changed when the vertical-tabs library was loaded. CKEditor 5's library definitions were updated accordingly, but not Block.

Steps to reproduce

Visit the block form and scroll down to the Visibility section, note that each vertical tab has the string "Not Required" appended.

Expected:
Block form with expected outcome

Actual:
Block form with actual outcome

Proposed resolution

Following the CR instructions, add the library as an explicit dependency.

Remaining tasks

Write tests

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3493182

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

tim.plunkett created an issue. See original summary.

tim.plunkett’s picture

Status: Active » Needs work

Crediting @lauriii who found the bug. NW for tests

catch’s picture

This is visually a very bad regression, so I think we should commit the quick fix and add some general test coverage for block visibility vertical tabs in #3493914: Write functional javascript test for block visibility vertical tabs - presumably we have none otherwise this would have been caught.

catch’s picture

Issue tags: -Needs tests

Moving to RTBC, let's add more comprehensive coverage in the other issue.

catch’s picture

Status: Needs work » Reviewed & tested by the community

  • quietone committed 8da4c296 on 10.4.x
    Issue #3493182 by tim.plunkett, catch, lauriii: Block visibility...

  • quietone committed 80e550dc on 10.5.x
    Issue #3493182 by tim.plunkett, catch, lauriii: Block visibility...

  • quietone committed 9eb79374 on 11.1.x
    Issue #3493182 by tim.plunkett, catch, lauriii: Block visibility...

  • quietone committed 89a009ac on 11.x
    Issue #3493182 by tim.plunkett, catch, lauriii: Block visibility...
quietone’s picture

Version: 11.x-dev » 10.4.x-dev
Status: Reviewed & tested by the community » Fixed

I agree with catch that due to the severity of this visual regression that the fix should be in the release without a test. I may also use this as an opportunity to write my first FunctionalJS test, who knows!

Committed to 11.x and cherry-picked to 11.1.x 10.5.x 10.4.x

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.