Skip to content

设置 theme 成dark后,只是文字颜色变化了,背景没变化 #8

Description

@mikeguo99

而且在初始化只有再修改 theme,就文字颜色也没有变化。

export default function ReactCusdisWrapper({ articleId, title }: Props) {
  const { themeName, isDarkMode } = useTheme();
  return (
    <>
      <div id="react-cusdis-wrapper">
        <ReactCusdis
          attrs={{
            host: "https://......",
            appId: "......",
            pageId: "/.../" + ...,
            pageTitle: title,
            pageUrl: "https://.../" + ...,
            theme: themeName,
          }}
        />
      </div>
    </>
  );
}

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions