Hi, I have a problem with the progress bar with this theme. Try doing a views bulk operation (batch enable) with an entity, progress bar stuck in initializing.

The theme has a template "templates/misc/progress-bar.html.twig" that references to a library that not exists.

{{ attach_library('bootstrap_barrio/progress') }}

This library should have an associated CSS that is not in css folder. (progress.css?¿)

My solution:

1. Create a 'bootstrap_barrio/progress' library in 'bootstrap_barrio.libraries.yml:

progress:
  version: VERSION
  css:
    component:
      css/components/progress.css: { weight: -10 }

2. Copy the classy core theme 'progress.css' in 'css/components'

3. Modify 'templates/misc/progress-bar.html.twig' file with:

{{ attach_library('bootstrap_barrio/progress') }}
<div class="progress" data-drupal-progress>
  {% if label %}
    <div class="progress__label">{{ label }}</div>
  {% endif %}
  <div class="progress__track"><div class="progress__bar" style="width: {{ percent }}%"></div></div>
  <div class="progress__percentage">{{ percent }}%</div>
  <div class="progress__description">{{ message }}</div>
</div>

Comments

carles.zapater created an issue. See original summary.

mithun s’s picture

Assigned: Unassigned » mithun s
carles.zapater’s picture

Version: 8.x-4.x-dev » 8.x-4.17
mithun s’s picture

Assigned: mithun s » Unassigned
Status: Active » Needs review
StatusFileSize
new1.41 KB

I have made all the changes mentioned in the issue and applied the patch. Please review the patch.

Status: Needs review » Needs work

The last submitted patch, 4: library-css-file-3029967-3.patch, failed testing. View results

mithun s’s picture

Version: 8.x-4.17 » 8.x-4.x-dev
Status: Needs work » Needs review
StatusFileSize
new3.56 KB

The patch file has been updated with all the changes mentioned above. Please review the patch.

Status: Needs review » Needs work

The last submitted patch, 6: 3029967-6.patch, failed testing. View results

hatuhay’s picture

Status: Needs work » Fixed

  • hatuhay committed e8f79bd on 8.x-4.x authored by Mithun S
    Issue #3029967 by Mithun S, carles.zapater: Missing progress library and...

Status: Fixed » Closed (fixed)

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