r-lib / cli

Tools for making beautiful & useful command line interfaces
https://cli.r-lib.org/
Other
625 stars 66 forks source link

Changing color for bullets #660

Open olivroy opened 6 months ago

olivroy commented 6 months ago

From https://cli.r-lib.org/reference/containers.html#auto-closing

div <- function() {
  cli_div(class = "tmp", theme = list(.tmp = list(color = "yellow")))
  cli_text("This is yellow")
}
div()
cli_text("This is not yellow any more")

This works, renders the text as yellow.

However, if I replace cli_text() by cli_bullets(), it doesn't show as yellow.

div <- function() {
  cli_div(class = "tmp", theme = list(.tmp = list(color = "yellow")))
  cli_bullets("This is yellow")
}
div()

Is there a way to do this? I tried going through the docs, but couldn't find it.

gaborcsardi commented 2 weeks ago

Seems like a bug.