Skip to content

UI: Load Monaco codicon glyph styles via direct CSS import - #69419

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:fix-monaco-codicon-styles-import
Jul 5, 2026
Merged

UI: Load Monaco codicon glyph styles via direct CSS import#69419
potiuk merged 1 commit into
apache:mainfrom
potiuk:fix-monaco-codicon-styles-import

Conversation

@potiuk

@potiuk potiuk commented Jul 5, 2026

Copy link
Copy Markdown
Member

monaco-editor 0.53 removed the internal codiconStyles side-effect module that the local ESM Monaco setup imported to register the codicon glyph font (folding arrows, find-widget icons). This imports the two stylesheets that module pulled in — codicon/codicon.css and codicon/codicon-modifiers.css — directly instead, mirroring the existing dynamic-CSS-import pattern already used for Katex (KatexStyleLoader.ts).

Both files ship in the currently pinned 0.52.2 and in newer releases, so this is behaviour-neutral today and unblocks the pending monaco-editor bump to 0.55.x (dependabot #69354 / the v3-3-test #69355), which otherwise fails the React UI tests with:

Failed to resolve import "monaco-editor/esm/vs/base/browser/ui/codicons/codiconStyles"

Verified locally

  • monaco 0.52.2 + fix → affected tests pass (no regression)
  • monaco 0.55.1 without fix → reproduces the exact CI failure above
  • monaco 0.55.1 with fix → affected tests pass (32/32)

Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 4.8)

Generated-by: Claude Code (Opus 4.8) following the guidelines

monaco-editor 0.53 removed the `codiconStyles` side-effect module that the
local ESM Monaco setup imported to register the codicon glyph font (the
folding arrows and find-widget icons). Import the two stylesheets that module
pulled in — `codicon/codicon.css` and `codicon/codicon-modifiers.css` —
directly instead, mirroring the existing dynamic-CSS-import pattern already
used for Katex.

Both files ship in the currently pinned 0.52.2 and in newer releases, so this
is behaviour-neutral today and lets the editor keep rendering its glyphs once
monaco-editor is bumped past 0.52, unblocking the pending dependency update.
@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Jul 5, 2026
@potiuk potiuk added this to the Airflow 3.3.1 milestone Jul 5, 2026
@potiuk potiuk added the backport-to-v3-3-test Backport to v3-3-test label Jul 5, 2026
@potiuk
potiuk merged commit 2629cf3 into apache:main Jul 5, 2026
86 checks passed
@potiuk
potiuk deleted the fix-monaco-codicon-styles-import branch July 5, 2026 22:55
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-3-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
v3-3-test PR Link

potiuk added a commit that referenced this pull request Jul 5, 2026
#69419) (#69422)

monaco-editor 0.53 removed the `codiconStyles` side-effect module that the
local ESM Monaco setup imported to register the codicon glyph font (the
folding arrows and find-widget icons). Import the two stylesheets that module
pulled in — `codicon/codicon.css` and `codicon/codicon-modifiers.css` —
directly instead, mirroring the existing dynamic-CSS-import pattern already
used for Katex.

Both files ship in the currently pinned 0.52.2 and in newer releases, so this
is behaviour-neutral today and lets the editor keep rendering its glyphs once
monaco-editor is bumped past 0.52, unblocking the pending dependency update.
(cherry picked from commit 2629cf3)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
vatsrahul1001 pushed a commit that referenced this pull request Jul 7, 2026
#69419) (#69422)

monaco-editor 0.53 removed the `codiconStyles` side-effect module that the
local ESM Monaco setup imported to register the codicon glyph font (the
folding arrows and find-widget icons). Import the two stylesheets that module
pulled in — `codicon/codicon.css` and `codicon/codicon-modifiers.css` —
directly instead, mirroring the existing dynamic-CSS-import pattern already
used for Katex.

Both files ship in the currently pinned 0.52.2 and in newer releases, so this
is behaviour-neutral today and lets the editor keep rendering its glyphs once
monaco-editor is bumped past 0.52, unblocking the pending dependency update.
(cherry picked from commit 2629cf3)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
vatsrahul1001 pushed a commit that referenced this pull request Jul 9, 2026
#69419) (#69422)

monaco-editor 0.53 removed the `codiconStyles` side-effect module that the
local ESM Monaco setup imported to register the codicon glyph font (the
folding arrows and find-widget icons). Import the two stylesheets that module
pulled in — `codicon/codicon.css` and `codicon/codicon-modifiers.css` —
directly instead, mirroring the existing dynamic-CSS-import pattern already
used for Katex.

Both files ship in the currently pinned 0.52.2 and in newer releases, so this
is behaviour-neutral today and lets the editor keep rendering its glyphs once
monaco-editor is bumped past 0.52, unblocking the pending dependency update.
(cherry picked from commit 2629cf3)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
vatsrahul1001 pushed a commit that referenced this pull request Aug 5, 2026
#69419) (#69422)

monaco-editor 0.53 removed the `codiconStyles` side-effect module that the
local ESM Monaco setup imported to register the codicon glyph font (the
folding arrows and find-widget icons). Import the two stylesheets that module
pulled in — `codicon/codicon.css` and `codicon/codicon-modifiers.css` —
directly instead, mirroring the existing dynamic-CSS-import pattern already
used for Katex.

Both files ship in the currently pinned 0.52.2 and in newer releases, so this
is behaviour-neutral today and lets the editor keep rendering its glyphs once
monaco-editor is bumped past 0.52, unblocking the pending dependency update.
(cherry picked from commit 2629cf3)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers. backport-to-v3-3-test Backport to v3-3-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants