Skip to content

font color is white when in dark mode #503

Description

@Dedicatus546

Gitalk 版本

1.7.2

报错信息?

when in dark mode, the color in default style of textarea tag was triggered to color: white;, gitalk.css define background-color: white and not define color: black. i can't see it clearly.

image

if gitalk don't adapt dark mode. the simple way to fix it is to add color: black to the selecter of .gt-container .gt-header-textarea in gitalk.css.

.gt-container .gt-header-textarea {
    adding: 0.75em;
    display: block;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    min-height: 5.125em;
    max-height: 15em;
    border-radius: 5px;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 0.875em;
    word-wrap: break-word;
    resize: vertical;
    background-color: #f6f6f6;
    outline: none;
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
    /* add */ 
    color: black;
}

and now it work well.

image

浏览器版本?

chrome(100.0.4896.127)

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