Skip to content

Wrong CSS selector in Input styles #370

@longnguyen2004

Description

@longnguyen2004

What package has an issue

@svelteuidev/core

A clear and concise description of what the bug is

darkMode: {
'& .input': variant === 'headless' ? {} : { color: theme.fn.themeColor('dark', 0) },
'&:disabled': {

This should be input, and not .input. This causes the text input to stay black when dark mode is enabled.

image
image

In which browser(s) did the problem occur?

Firefox, Chrome, Microsoft Edge

Steps To Reproduce

Make a TextInput, and turn on dark mode.

Do you know how to fix the issue

Yes

Are you willing to participate in fixing this issue and create a pull request with the fix

Yes

Relevant Assets

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcomponentNew or changes to components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions