"Copy link" icon doesn't appear due to missing base dependency

Created on 23 October 2024, about 1 month ago

In Commerce 2.40, a copy link was added to the variations page in Add a "copy link" operation to the variations list Fixed . On my fresh installation of 2.40 using admin theme Claro, this link does not display as anything but a black square (see screenshot). Here, commerce.base.css was not being loaded by the browser. Discussions in Drupal #commerce had me add a base dependency to commerce.libraries.yml:

copy-link:
  css:
    theme:
      css/commerce.copy-link.css: { }
  js:
    js/commerce.copy-link.js: { }
  dependencies:
    - commerce/base

And that solved the problem for me. The suspicion is that, in the original developer's environment, there was another module enabled that had a dependency on the base.css, which I didn't have enabled in my environment, thus making it appear like copy-link was working properly for them, but not for me.

I'm not in a position to provide a patch for this at this time.

🐛 Bug report
Status

Active

Version

3.0

Component

User experience

Created by

🇺🇸United States morbus iff

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024