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

Colored Spans #97

Closed
wants to merge 2 commits into from
Closed

Colored Spans #97

wants to merge 2 commits into from

Conversation

BrettMayson
Copy link

Adds colored spans that take priority over labels. Useful for showing correlation with suggestions / help text. Implements my issue in #96

image

Without the PR, using empty labels that result in a bunch of whitespace.

image

@zesterer
Copy link
Owner

zesterer commented Jan 1, 2024

I wonder whether labels without a message should just default to this behaviour? That would seem sensible to me. What do you think?

@BrettMayson
Copy link
Author

I thought of that at first, but went this way because I like the intentionality behind it, but if you think empty labels would be better I am happy to rework this PR

@zesterer
Copy link
Owner

zesterer commented Jan 2, 2024

I think that's probably preferable over adding another corner of the API. I highly doubt that "empty label that occupies space for no reason" is a desirable thing, so we might as well use that case for this.

@BrettMayson BrettMayson closed this Feb 2, 2024
@zesterer
Copy link
Owner

zesterer commented Feb 2, 2024

Oh... why was this closed?

@BrettMayson
Copy link
Author

Doing this via labels was going to need more work than I want to put into it right now, and I am no longer using ariadne in my project

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

Successfully merging this pull request may close these issues.

None yet

2 participants