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

SegmentedControl dark mode not working #42

Open
kallmetony opened this issue Jul 12, 2024 · 8 comments
Open

SegmentedControl dark mode not working #42

kallmetony opened this issue Jul 12, 2024 · 8 comments

Comments

@kallmetony
Copy link

Its not working on both Android and IOS. Light theme looks fine.

image

image

@kallmetony
Copy link
Author

Same on PC
image

@toplenboren
Copy link

Hey, @kallmetony, or @kayman233 do you maybe have a reproduction repo? I was not able to replicate this issue

Are you sure you get theme variables correctly?

@kayman233
Copy link

Hello @toplenboren I fixed my issue by making sure the right value is in AppRoot's appearance prop.

@kallmetony
Copy link
Author

Hello @toplenboren I fixed my issue by making sure the right value is in AppRoot's appearance prop.

wdym

@toplenboren
Copy link

@kallmetony do you have your app wrapped by <AppRoot>...</AppRoot>?

@kallmetony
Copy link
Author

@toplenboren I use nextjs but sure, I do

Screenshot_20240823_105613_Samsung Internet

@kayman233
Copy link

@kallmetony you can check how it should be specified with appearance prop in the template example:
https://github.com/Telegram-Mini-Apps/nextjs-template/blob/master/src/components/Root/Root.tsx#L44

@toplenboren
Copy link

@toplenboren I use nextjs but sure, I do

Screenshot_20240823_105613_Samsung Internet

hmm, might be smth with SSR, not sure if theme as available while rendering on server...

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

No branches or pull requests

3 participants