Closed (fixed)
Project:
radix
Version:
5.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Dec 2021 at 15:06 UTC
Updated:
9 Jan 2025 at 13:22 UTC
Jump to comment: Most recent, Most recent file
The 5.x radix theme has removed the ability to compile SASS from the base theme, however there are still 3 SCSS partial files located inside sub-folders of the src/components folder.

Decide whether the SCSS partials should be removed or moved to the starterkit.
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | Radix-Navbar-Search-Field-issue.jpg | 35.76 KB | kbaringer |
| Screen Shot 2021-12-17 at 1.13.03 PM.png | 450.9 KB | jwilson3 |
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jwilson3Spoke to @doxigo (@Syd on Drupal Community Slack) in #radix channel about this last week:
Comment #3
jwilson3I'll work on an MR.
Comment #5
jwilson3Upon deeper investigation, I found that the starterkit's main.style.scss imports these three SCSS files from the parent theme.
After considering this, I suppose it is smarter to leave the partials in the base radix theme, as this pattern would provide a method going forward for adding support for additional core components or even making changes to the existing components. While this is not perfect, it is better than moving these partials into the starterkit, where they would be more difficult to update and patch existing sites that have already instantiated the starterkit and "disconnected" it from the base from which it was generated.
Comment #6
jwilson3Comment #7
jwilson3I was unable to figure out how to close the MR unmerged.
Comment #8
doxigo commentedOkay, we need to re-open this James, I did personally encounter a scenario where this caused some build issues in a particular CI deployment.
There are multiple solutions we can take a look at:
- Handle the build ourselves and just serve the CSS file as a library
- Move them into the subtheme
- Get rid of these if it's not necessary
Comment #9
doxigo commentedJust removed them for now, will see if it's needed at a later stage
Comment #11
jcandan commentedFor those coming here from Google. I also experienced issues in my CI pipeline (not having this issue locally).
Removed these 3 lines from our sub-theme's
./src/scss/main.style.scss. CI pipeline completed without error.Comment #12
doxigo commentedOpening this back again, have to move that to the subtheme itself instead of the parent theme
Comment #13
doxigo commentedMoved offcanvas within the subtheme and got rid of forum and navbar, it wasn't really necessary to keep those
Comment #14
doxigo commentedComment #16
kbaringer commentedHi @doxigo, thanks for keeping the Radix theme up-to-date!! I only just started using it for a new project this week and found the process to set up a subtheme really straightforward. However, when I updated the Radix parent theme from 5.0.7 to 5.0.8 yesterday it broke the Bootstrap styled Search form in the Navbar of my subtheme.
Instead of the inline magnifying glass icon inside the form field it now has a separate 'Search' button. This causes the field to wrap, which pushes the whole navbar down (see screenshot).
I haven't had time to dig into the way Bootstrap is implemented and debug this issue (since the whole point of using the Radix theme was to save time), but it seems like this regression was caused by this change (#15).
As was mentioned in #11, I manually commented out the lines in /src/scss/main.style.scss that imported styles from the parent theme (including for the navbar):
Is it possible that the scss that was being imported from the parent is what enabled the inline Bootstrap search bar styles?
Comment #17
doxigo commentedComment #18
tstermitzPlease add a comment to the release notes for releases after 5.0.7 that it is necessary and safe to comment out these three lines, and move the offcanves.scss to your custom theme - if it is indeed safe to do that. I didn't immediately notice any issues after doing so.
Comment #19
doxigo commentedComment #20
doxigo commented