Skip to content

fix(prism.css): Remove background prop from .token.operator#1839

Open
gdaffa wants to merge 1 commit intophp:masterfrom
gdaffa:fix/code-block-bg
Open

fix(prism.css): Remove background prop from .token.operator#1839
gdaffa wants to merge 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants