-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: add tests to verify initial rendering #25
Conversation
I'll leave the rest of this up to you, but I agree that the title and description shouldn't be on the same line |
@@ -133,12 +133,11 @@ impl<'a> Confirm<'a> { | |||
let mut out = Buffer::ansi(); | |||
|
|||
out.set_color(&self.theme.title)?; | |||
write!(out, " {}", self.title)?; | |||
writeln!(out, " {}", self.title)?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you want to remove the 1 column prefix?
I looked at huh and it looks like they actually put a solid line on the side which I don't really like the look of. I don't have a strong preference here, but whatever we do should be consistent across our components I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess in theory this is something that could be handled via themes if we want to go that route (not sure if huh does that or not)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK the line on the side in huh
marks the active field in a form/group.
@jdx Not sure how useful these could be as they only check the initial rendering but they already show 2 issues.