Problem/Motivation

After #2566597: [Mega patch] Move system *.theme.css files to Classy was committed you can still lock colors together in the UI but you cannot actually see the locks.

It looks like this:

It should look like this:

Here is the CSS specificity conflict/issue via Chrome's inspector:

Proposed resolution

Fix it.

Remaining tasks

Patch
Manual testing

User interface changes

You will be able to see the locks again.

API changes

n/a

Data model changes

n/a

Comments

Cottser created an issue. See original summary.

star-szr’s picture

Title: Color locking no longer works » You can no longer see the locks when locking colors together
Issue summary: View changes
Issue tags: +Novice, +frontend
StatusFileSize
new32.73 KB
new37.07 KB
new40.39 KB

Okay so the locking still works you just can't see the lock. Updating issue summary with new screenshots and information and tagging.

davidhernandez’s picture

Aha! So that's what the hook is!

It is link.css that is breaking it. Any idea where that CSS originated? It is currently in Classy, but I don't see it in core.

lobsterr’s picture

Assigned: Unassigned » lobsterr
lobsterr’s picture

StatusFileSize
new1.1 KB
lobsterr’s picture

Assigned: lobsterr » Unassigned
Status: Active » Needs review
star-szr’s picture

Status: Needs review » Postponed

Manual testing seems to check out, thanks @LOBsTerr!

This should probably go in after #2575737: Copy templates, CSS, and related assets to Stable and override core libraries' CSS, and update Stable's color.admin.css as well. To make this clear, postponing for now.

star-szr’s picture

Status: Postponed » Needs work
lobsterr’s picture

Assigned: Unassigned » lobsterr
lobsterr’s picture

Assigned: lobsterr » Unassigned
Status: Needs work » Needs review
StatusFileSize
new1.54 KB
star-szr’s picture

Issue tags: +JavaScript

Nice thanks!

star-szr’s picture

Status: Needs review » Reviewed & tested by the community

Looks good and manual testing checks out, RTBC'ing with the knowledge that this will not go in until after 8.0.0 is released, not sure how else to indicate that.

star-szr’s picture

Issue summary: View changes
StatusFileSize
new45.17 KB

Also here's an "after" screenshot:

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Manual testing shows that this patch works as expected. As this is a bug fix and the color locks are completely unusable without committing to 8.0.x for inclusion in the next patch release. Although there are CSS additions I don't think this will break any sites since it is admin only. Committed 4227ef6 and pushed to 8.0.x and 8.1.x. Thanks!

  • alexpott committed a983f7c on 8.1.x
    Issue #2612150 by LOBsTerr: You can no longer see the locks when locking...

  • alexpott committed 4227ef6 on
    Issue #2612150 by LOBsTerr: You can no longer see the locks when locking...
alexpott’s picture

Adding @Cottser to the credit list.

Status: Fixed » Closed (fixed)

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