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

Render attribute modifiers different from style modifiers #42

Open
bitspittle opened this issue Mar 4, 2024 · 0 comments
Open

Render attribute modifiers different from style modifiers #42

bitspittle opened this issue Mar 4, 2024 · 0 comments
Labels
IDE: Documentation Some feature related to quick docs / surfacing documentation in a popup or widget IDE: Inspection Some information that should be surfaced to the user (tooltip, notification, lint warning) maybe? Not sure we'll do this, but thinking about it, and open for input.
Milestone

Comments

@bitspittle
Copy link
Contributor

Not 100% sure the best approach here, but it might be nice if instead of code like this:

Modifier.id("hi").color(Colors.Red).tabIndex(0)

it looked like this:

Modifier.id("hi").color(Colors.Red).tabIndex(0)

(We should probably only apply the visual style to attribute modifiers since they are rarer)

This could make it easy for new users to visually and quickly build a mental model that some modifiers are different than others.

It might be nice if we could also surface "This is a style modifier" and "This is an attribute modifier" into the quick docs somehow, maybe with a link to more information about that.

@bitspittle bitspittle added this to the Next release milestone Mar 4, 2024
@bitspittle bitspittle added maybe? Not sure we'll do this, but thinking about it, and open for input. IDE: Inspection Some information that should be surfaced to the user (tooltip, notification, lint warning) IDE: Documentation Some feature related to quick docs / surfacing documentation in a popup or widget labels Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IDE: Documentation Some feature related to quick docs / surfacing documentation in a popup or widget IDE: Inspection Some information that should be surfaced to the user (tooltip, notification, lint warning) maybe? Not sure we'll do this, but thinking about it, and open for input.
Projects
None yet
Development

No branches or pull requests

1 participant