survey: fix color contrast of default values in prompts (#7354)

This commit is contained in:
Rick Kilgore 2023-05-15 02:47:53 -07:00 committed by GitHub
parent bd749b67f6
commit 0d110ea8bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,9 +80,6 @@ func mainRun() exitCode {
surveyCore.TemplateFuncsWithColor["color"] = func(style string) string {
switch style {
case "white":
if cmdFactory.IOStreams.ColorSupport256() {
return fmt.Sprintf("\x1b[%d;5;%dm", 38, 242)
}
return ansi.ColorCode("default")
default:
return ansi.ColorCode(style)