Closed (fixed)
Project:
Barrio Bootstrap 5 Theme
Version:
5.5.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Aug 2022 at 14:27 UTC
Updated:
15 Nov 2025 at 18:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dharti patel commentedComment #3
dharti patel commentedReviewd this patch and it's working fine. Need to move RTBC.
Thanks!
Comment #4
hatuhay commentedThe exact location depends on the file structure of your site.
In some cases you should overwrite the location on your subtheme.
Comment #5
floown commentedI have not this problem.
I'm on 5.5.6 now, and in my style.css I did have to patch with these lines:
.form-required::after {
content: "";
vertical-align: super;
display: inline-block;
background-image: url(../img/required.svg);
background-repeat: no-repeat;
background-size: 7px 7px;
width: 7px;
height: 7px;
margin: 0 0.3em;
}
Now I have comment all this css block and the red star display themself like a charm from form.css
Comment #6
jan-e commentedIMHO, the path should be relative to the root of the theme. webform.css is in
bootstrap_barrio/css/components. You have to go 2 up and then down toimages. New patch attached.Comment #7
jan-e commentedThe same issue exists in version 5.5.6
Comment #9
hatuhay commentedComment #10
jurgenhaasI tend to disagree with this approach, because this breaks the location when used from a sub-theme. What should be done here is to introduce a variable for the root directory of the bootstrap_barrio theme. This could then be overwritten by a subtheme.
The same applies not only for webform.scss but also for files.scss and form.scss.
Comment #12
jurgenhaasHave provided an MR with the variable being defined and used in the 3 files where relative paths are in use.
Comment #13
super_romeo commentedI agree with @jurgenhaas.
Comment #14
jurgenhaasUnfortunately, this is again missing in the latest release. It's been fixed in the files.scss but not in webform.scss or form.scss
Could that please being added too? I've prepared everything in a patch file for you.
Comment #15
jurgenhaasRe-rolled to fix indentation.
Comment #16
jurgenhaasGot confused somehow, the file.scss wasn't fixed either. The latest patch now contains the fix for all 3 scss files.
Comment #17
jurgenhaasAlso bringing back the missing $barrio_path_images variable
Comment #19
hatuhay commentedComment #21
londova commentedI still have this error message after installing the last version 5.5.12
Comment #22
maxmendez commentedThis problem persist on 5.5.12 and 5.5.x-dev.
Seems to be only in the compile files.

The correct value must be:
background-image: url(../../images/required.svg);
Comment #23
2dareis2do commentedIf creating sub theme using bootstrap_sass, it is likely that the image path should be relative to the css file that is referencing it. This should likely be as follows:
https://www.drupal.org/project/bootstrap_sass/issues/3384850#comment-152...
Other wise you will get 404 errors e.g.
Is it possible to re-open this issue?
Comment #24
kristen polGetting these errors as well:
Looking at the CSS used in the page source, it's using:
But, this issue can't be reopened other than by the maintainers so we need a new issue.
Comment #25
kristen polCreated a new issue: #3390861: Continue to have issue with wrong path of required.svg in webform.css
Comment #26
kristen polNote that the latest dev version is working as expected so you can use that until a new release is available.