Skip to content

revealjs ul style preferred to task-list style #2834

@aronatkins

Description

@aronatkins

Bug description

Using Quarto 1.2.209 rendered on macOS from the CLI; this is the Quarto version included in one of the most recent RStudio dailies.

Quarto with revealjs sees the revealjs style used rather than the default task-list style injected into the document. This is because the .reveal ul scoped CSS is preferred over the top-level CSS injected by Quarto+Pandoc.

---
title: task list with reveal
format: revealjs
---

## tasks

- [x] wake up
- [ ] brush teeth
- [ ] drink coffee

As rendered, you can see both the original list icons and the check-boxes as rendered on Safari. Only the check-boxes should be displayed and they should be more prominent.

image

I am locally using these override styles; they're imperfect, but an improvement.

.reveal ul.task-list{list-style: none;}
.reveal ul.task-list li input[type="checkbox"] {
    width: 2em;
    height: 2em;
    margin: 0 1em 0.5em -1.6em;
    vertical-align: middle;
}
.reveal ul.task-list li input[type="checkbox"][disabled] {
    outline:1px solid lightgrey;
}
.reveal ul.task-list li input[type="checkbox"][disabled][checked] {
    outline:2px solid green;
}

Checklist

  • Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingrevealjsIssues with the revealjs formatupstreamBug is in upstream library

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions