Skip to content

fix(css): Override .token.operator bg to trasnparent#1839

Merged
shivammathur merged 1 commit intophp:masterfrom
gdaffa:fix/code-block-bg
Feb 28, 2026
Merged

fix(css): Override .token.operator bg to trasnparent#1839
shivammathur merged 1 commit intophp:masterfrom
gdaffa:fix/code-block-bg

Conversation

@gdaffa
Copy link
Contributor

@gdaffa gdaffa commented Feb 27, 2026

Fix visual error within the code block by removing background property from .token.operator.

Before:
bg-before-fix

After:
bg-after-fix

For anyone wondering .token.operator class is defined on prism.css line 3 column 1479.

@TimWolla
Copy link
Member

This bundled file should not be modified, because this will make updates harder. Instead the CSS should be overridden in some other way.

@gdaffa
Copy link
Contributor Author

gdaffa commented Feb 27, 2026

Oh im sorry i didnt know that, i also think that way but @shivammathur asked me to fix it on PR #1838 so i think its fine.

@shivammathur
Copy link
Member

@gdaffa Please use styles/code-syntax.css instead to override this.

@gdaffa
Copy link
Contributor Author

gdaffa commented Feb 28, 2026

oh ok ill be right back

@gdaffa gdaffa changed the title fix(prism.css): Remove background prop from .token.operator fix(css): Override .token.operator bg to trasnparent Feb 28, 2026
@gdaffa
Copy link
Contributor Author

gdaffa commented Feb 28, 2026

done

@github-actions
Copy link
Contributor

🚀 Regression report for commit 1dfe6a0 is at https://web-php-regression-report-pr-1839.preview.thephp.foundation

@github-actions
Copy link
Contributor

🚀 Preview for commit 1dfe6a0 can be found at https://web-php-pr-1839.preview.thephp.foundation

@shivammathur shivammathur merged commit 0c7db78 into php:master Feb 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants