Background colour of UI widgets get overridden on Ajax load.

Created on 28 August 2023, about 1 year ago

Problem/Motivation

Background of jquery ui widget is set to none, it causes lost of background colour in ui widget elements when component is loaded via Ajax.
https://git.drupalcode.org/project/drupal/-/blob/11.x/core/themes/claro/...

Steps to reproduce

  • Install Drupal 10 with Claro as the admin theme.
  • Install scheduled_transitions module.
  • Enable workflows for the page content type.
    /admin/config/workflow/workflows/manage/editorial
  • Create a page content.
  • Create a scheduled transition for the node created.
    Example URL for content with nid 1
    node/1/scheduled-transitions
  • Click on the Add Scheduled transition button

What we get
On the pop up dialog, the action button "Schedule transition" has the colour wiped out.

<button type="button" class="button button--primary js-form-submit form-submit ui-button ui-corner-all ui-widget">Schedule transition</button>

What we expect
The button to have the button--primary background colour retained.

Proposed resolution

* In the theme libraries yml, set the button.css as component of claro.jquery.ui.

🐛 Bug report
Status

Active

Version

10.1

Component
Claro 

Last updated 1 day ago

Created by

🇦🇺Australia KelvinWong

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024