Closed
Description
I want to have a checkbox list on my README that gets posted on the home page, but I don't want the items to be interactive in HTML (i.e., I don't want the user to be able to click them to toggle them on or off).
Steps for MWE:
- Open RStudio
- File > New Project > New R Package
usethis::use_readme_rmd()
usethis::use_pkgdown()
- Edit README.Rmd to contain:
---
output: github_document
---
- [ ] unfilled
- [x] filled
devtools::build_readme()
pkgdown::build_site()
- Click on the checkboxes or list text to toggle them on/off
I tried adding CSS directly and via a .css file but am struggling to get this to be reflected in the HTML.
I believe the CSS is correct and this issue is more of how to get the CSS into that HTML file via pkgdown:
ul.task-list input[type="checkbox"] {
pointer-events: none;
cursor: default;
accent-color: gray;
}
ul.task-list label {
pointer-events: none;
cursor: default;
}
Metadata
Metadata
Assignees
Labels
No labels