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

Changing color for bullets #660

Open
olivroy opened this issue Dec 12, 2023 · 1 comment
Open

Changing color for bullets #660

olivroy opened this issue Dec 12, 2023 · 1 comment
Labels
bug an unexpected problem or unintended behavior

Comments

@olivroy
Copy link
Contributor

olivroy commented Dec 12, 2023

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
Copy link
Member

Seems like a bug.

@gaborcsardi gaborcsardi added the bug an unexpected problem or unintended behavior label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants