Problem/Motivation

I was trying to use Linkit and I was having a missing background color problem.

After investigation I used this patch that was supposed to fix it: https://www.drupal.org/files/issues/2024-05-21/linkit-ckeditor-position-...
Link to the original issue: https://www.drupal.org/project/linkit/issues/3381766

But after installing it, there was still an issue for me.

After another investigation I saw that the CSS of the Seeds Toolbar module was interfering with the .ui-autocomplete.ui-menu style, adding a position: fixed to it.

This was in conflict with the fix made for the linkit module, so maybe the css selector given above is to generic.

Steps to reproduce

  1. Install Linkit and Seeds Toolbar
  2. Configure a linkit profile in CKEditor 5
  3. Try to add a link and the background color of the linkit element is supposed to be transparent.

Proposed resolution

For a quick fix I just edited the line 81 as :
body:not(.responsive-preview-frame) .ui-autocomplete.ui-menu:not(.linkit-ui-autocomplete) {

I don't have the time to investigate more at the moment for a more generic fix (avoiding quoting linkit directly here), but at least there is a workaround patch available for everyone needing this.

Remaining tasks

A more robust fix in the css selector.

Comments

sillot created an issue. See original summary.

sillot’s picture

Issue summary: View changes
ahmad-alyasaki’s picture

@Sillot
Hello, thanks for reporting the issue, but it looks like you are not using the root them we provided as backend them it's very recommended to use it with the seeds toolbar because it contains a fix for your issue, and other issues might appear in the future, and unfortunately we could not apply your patch because we are using this style on the link-it input to prevent overflow happen in the suggestion.

For now, we can move this style to the root theme instead of being here in the seeds toolbar for anyone using this module without a root theme

ahmad-alyasaki’s picture

Here is the new patch

  • ahmad-alyasaki committed d9f834a8 on 2.x
    Issue #3455030: Conflict with Linkit module .ui-autocomplete.ui-menu
    
ahmad-alyasaki’s picture

Version: 2.0.5 » 2.x-dev
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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