GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Pin version for postcss (Fix for wrongly rendered icons) by hannaseithe · Pull Request #4535 · digitalfabrik/integreat-cms

Conversation

@hannaseithe

@hannaseithe hannaseithe commented Aug 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Short description

This pins the npm package postcss to 8.5.23 and fixes the css build bug introduced there

Proposed changes

  • Pins postcss to 8.5.23 via overrides in package.json, forcing every dependency that pulls in postcss (tailwindcss, autoprefixer, postcss-preset-env, css-loader, css-minimizer-webpack-plugin, postcss-loader, postcss-cli, postcss-import, and transitively vite/vitest) to use this older version instead of whatever they'd naturally resolve to (8.5.25).
  • This is a workaround for an upstream postcss regression, already tracked here: Multiple BOM symbols inside generated css in v8.5.24 postcss/postcss#2133 (Multiple BOM symbols inside generated css in v8.5.24 postcss/postcss#2133) (exact change: commit 9a114f6 (postcss/postcss@9a114f6)). As of that thread, the root cause is now understood more precisely: sass-loader/dart-sass emits a BOM/charset marker on the individually-compiled CSS module (in our case, the flagpack-dart-sass module, which contains a non-ASCII \00a0 character). postcss ≤8.5.23 silently stripped this; 8.5.24 "fixed" that by faithfully preserving it — which breaks any build (like ours) that concatenates multiple postcss-processed CSS fragments into one file via css-loader/MiniCssExtractPlugin. There's a related sass-loader issue too: Byte Order Marker (BOM) inserted after external @import affects syntax webpack/sass-loader#1335 (Byte Order Marker (BOM) inserted after external @import affects syntax webpack/sass-loader#1335), plus a pending (contested) fix PR upstream in postcss (Add integration test for DeepL feature #2136 (Do not emit multiple UTF-8 BOM markers postcss/postcss#2136)).
  • Alternative fix worth knowing about, not applied here: the sass-loader issue reports that setting sassOptions.charset: false in the loader options avoids the BOM entirely, without needing to touch postcss's version at all. Didn't pursue it since the overrides pin is smaller/more contained, but it may be the more "correct" long-term fix once someone verifies it doesn't have side effects on this project's font/encoding-sensitive CSS.
  • We lose two unrelated upstream fixes that shipped in 8.5.25/8.5.26 (a list.split() fix and a source-map symlink-tracking fix) — neither is exercised by this build.
  • package-lock.json also has unrelated noise: a few optional platform packages lost a "libc" metadata field, from regenerating the lockfile with a slightly different npm patch version. Doesn't change any resolved package version.
  • Follow-up needed: remove this override once postcss ships an accepted fix (track Prevent combination of inactive but visible language tree nodes #2133(Multiple BOM symbols inside generated css in v8.5.24 postcss/postcss#2133 (Do not emit multiple UTF-8 BOM markers postcss/postcss#2136)), or switch to the sassOptions.charset: false approach if that turns out cleaner.

Side effects

  • None

Faithfulness to issue description and design

There are no intended deviations from the issue and design.

How to reproduce locally

On develop (before merge into develop)

  • In the file run.sh comment out the line 39 # deescalate_privileges npm run dev 2>&1 | print_prefix "webpack" 36 &
  • run npm ci
  • run npm run prod
  • run tools/run.sh
    => See that the icons are wrongly rendered

How to test

On feature branch:
Follow steps in How to reproduce locally

Resolved issues

Fixes: #4517


Pull Request Review Guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

MizukiTemma reacted with hooray emoji
All reactions
  • 🎉 1 reaction
@hannaseithe hannaseithe added the blocks-release This issue blocks a release label Aug 25, 2026
@MizukiTemma MizukiTemma self-assigned this Aug 25, 2026
@MizukiTemma
MizukiTemma self-requested a review August 25, 2026 09:37
@hannaseithe

hannaseithe commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator Author

The failing test. is one of the flaky tests

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@MizukiTemma MizukiTemma added the needs-reviewer label Aug 25, 2026
@hannaseithe @MizukiTemma
Pin version for postcss
687aa5a
@MizukiTemma
MizukiTemma force-pushed the fix/icons-wrongly-rendered-4517 branch from 77dcc1f to 687aa5a Compare August 25, 2026 12:29
MizukiTemma
MizukiTemma approved these changes Aug 25, 2026
View reviewed changes

@MizukiTemma MizukiTemma left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 🚀

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
seluianova
seluianova approved these changes Aug 25, 2026
View reviewed changes

@seluianova seluianova left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works like a charm 👍

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@seluianova seluianova removed the needs-reviewer label Aug 25, 2026
@hannaseithe

hannaseithe commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator Author

Thank you for rebasing @MizukiTemma!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hannaseithe
hannaseithe merged commit 41fc65a into develop Aug 25, 2026
5 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@hannaseithe
hannaseithe deleted the fix/icons-wrongly-rendered-4517 branch August 25, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@MizukiTemma MizukiTemma MizukiTemma approved these changes
@seluianova seluianova seluianova approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@MizukiTemma MizukiTemma

Labels

blocks-release This issue blocks a release

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Language & color icons don't have the correct size

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@hannaseithe @MizukiTemma @seluianova
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.