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
Comment #2
mithun sComment #3
carles.zapater commentedComment #4
mithun sI have made all the changes mentioned in the issue and applied the patch. Please review the patch.
Comment #6
mithun sThe patch file has been updated with all the changes mentioned above. Please review the patch.
Comment #8
hatuhay commented