fix(ui/sass/build): make FAQ visible and silence Sass deprecation warnings #71
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/faq-static-and-sass-deprecations"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Bootstrap 4 accordion markup on the FAQ page used
data-toggle/data-target/collapseattributes that Bootstrap 5 never initialises, so all FAQ answers were invisible to anyone
without the accordion JS running. The fix replaces the accordion with plain
h3/ppairsso the content is always visible without any JavaScript. The same pass corrects a missing
comma in the about-us copy ("Small moves, Ellie.") in both EN and IT strings.
Alongside that, the Sass build was emitting a wall of deprecation warnings on every
jekyll buildinvocation. The color-channel functions (red,green,blue,darken,lighten,mix), slash-division syntax, and the Bootstrap-vendoredif()/global-builtinusages have all been migrated to the
sass:colorandsass:mathmodule APIs in theproject's own partials and in the three vendored Bootstrap 5 partials. Deprecations that
originate from deeper inside the vendored code and cannot be cleanly refactored without
more aggressively forking Bootstrap are suppressed via
silence_deprecationsin_config.ymlas a deliberate temporary measure.The Bootstrap 4 accordion used data-toggle/data-target/collapse attributes that have no effect under Bootstrap 5. All FAQ answers were hidden by default (class="collapse") and only visible if JS ran the accordion initialisation, which it no longer does. Replace with plain h3 + p pairs inside a wrapping div so the content is always visible and no JS is required. Visual separation is preserved with the existing border-bottom/pb-3 classes. Also fixes a missing comma in the about-us header copy in both EN and IT strings ("Small moves Ellie." -> "Small moves, Ellie.").