Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark theme always loaded even if set to light #101

Closed
JeffreyCA opened this issue Apr 28, 2020 · 1 comment
Closed

Dark theme always loaded even if set to light #101

JeffreyCA opened this issue Apr 28, 2020 · 1 comment
Assignees
Labels

Comments

@JeffreyCA
Copy link
Contributor

Version

4.11.2

Description

I have the component setup like the following:

import ReactJkMusicPlayer from 'react-jinke-music-player';
import 'react-jinke-music-player/assets/index.css';

<ReactJkMusicPlayer
        audioLists={[]}
        mode="full"
        toggleMode={false}
        drag={false}
        remove={false}
        theme="light"
        autoHiddenCover={true}
        showDownload={false} showPlayMode={false} showReload={false} showThemeSwitch={false} showLyric={false}  />

However the music player is still using the dark theme.

I digged a bit further and it looks like the <div class="react-jinke-music-player-main"> element does not have light-theme or dark-theme as a class.

@lijinke666
Copy link
Owner

Fixed. thank your feedback. please upgrade 4.12.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants