Skip to content

Prism コピーボタンのスタイルに !important を追加 #297

Description

@coderabbitai

概要

Tailwind CSS の preflight 仕様により、Prism.js のコピーボタンのスタイルがオーバーライドされています。

対象ファイル

public/JavaScript/2630. Memoize II/Claude Code Sonnet 4.6 extended/README_react.html (Lines 55-71)

問題

.code-toolbar > .toolbar .toolbar-item button および .code-toolbar > .toolbar .toolbar-item .copy-to-clipboard-button セレクタの backgroundcolor プロパティが Tailwind の preflight によってオーバーライドされるため、コピーボタンが意図した色(エメラルドグリーン #10b981)で表示されません。

必要な対応

通常状態と :hover 状態の両方で、backgroundcolor プロパティに !important フラグを追加する必要があります。

関連リンク

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions