Code: Select all
---
title: "Quarto Dashboard with Radio Buttons"
format:
html:
theme: cosmo
runtime: shiny
execute:
echo: false
include-before-body:
- text: |
---
```{r}
shiny::radioButtons(
inputId = "choice",
label = "Select an option:",
choices = list(
"Option A" = "A",
"Option B" = "B",
"Option C" = "C"
),
selected = "A"
)
```
CSS -Datei < /h3>
/* www/custom.css */
.radio input[type="radio"]:checked + label::before {
border-color: gold !important;
background-color: gold !important;
}
< /code>
… aber es zeigt immer noch das Standardblau. Mit welchen CSS -Selektoren oder Quarto/Shiny -Einstellungen kann ich das Blau überschreiben und das Optionsfeld in Gold rendern?>