App Maker RadioGroup 样式不起作用

App Maker RadioGroup styling not working

我想将 Google App Maker RadioGroup 中的项目从黑色更改为白色。我尝试了以下但它不起作用:

.app-RadioGroup-Item {
  color: white;
}

我也尝试了 .app-RadioGroup-Input,但没有成功。

有什么想法吗?

谢谢

要更改标签和输入颜色,您可以尝试这些片段:

/* This style will affect only MyRadioGroup widget on the MyPage  */
.app-MyPage-MyRadioGroup-Item>label {
  color: green;
}

.app-MyPage-MyRadioGroup-Item>input {
  border-color: red;
}

.app-MyPage-MyRadioGroup-Item>input:checked {
  border-color: red;
}

.app-MyPage-MyRadioGroup-Item>input:checked:after {
  background-color: red;
}

 /* This style will affect all RadioGroup widgets in the app  */
.app-RadioGroup-Item>label {
  color: green;
}

.app-RadioGroup-Item>input {
  border-color: red;
}

.app-RadioGroup-Item>input:checked {
  border-color: red;
}

.app-RadioGroup-Item>input:checked:after {
  background-color: red;
}

注意:这些样式将覆盖禁用状态的样式。