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

Show an informative message if someone tries to create a non top-level restricted style #47

Open
bitspittle opened this issue May 6, 2024 · 0 comments
Labels
IDE: Action An IDE action (something a user might tie to a keyboard shortcut) IDE: Inspection Some information that should be surfaced to the user (tooltip, notification, lint warning)
Milestone

Comments

@bitspittle
Copy link
Contributor

This code

Button(colorScheme = ButtonColorScheme(object : ColorScheme { ... })

should inform users that ButtonColorScheme is a restricted CSS style type and must be instantiated as a singleton so Kobweb can find and register it, like so:

val CustomColorScheme = ButtonColorScheme(object : ColorScheme { ... })
Button(colorScheme = CustomColorScheme))
@bitspittle bitspittle added IDE: Action An IDE action (something a user might tie to a keyboard shortcut) IDE: Inspection Some information that should be surfaced to the user (tooltip, notification, lint warning) labels May 6, 2024
@bitspittle bitspittle added this to the Next release milestone May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IDE: Action An IDE action (something a user might tie to a keyboard shortcut) IDE: Inspection Some information that should be surfaced to the user (tooltip, notification, lint warning)
Projects
None yet
Development

No branches or pull requests

1 participant