ZhouChuYue commited on
Commit
1b63bb6
·
1 Parent(s): 7b999d3

fix: ensure radio button text is dark on unselected options

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -241,15 +241,20 @@ body {
241
  }
242
 
243
  /* Fix Radio/Checkbox alignment & styling */
244
- .gr-check-radio span, .gr-check-radio label span {
245
  margin-bottom: 0 !important;
246
  text-shadow: none !important;
247
- font-weight: 500 !important;
248
- color: #1f2937 !important; /* Dark gray text */
249
  display: flex !important;
250
  align-items: center !important;
251
  }
252
 
 
 
 
 
 
253
  /* Inputs & Textareas - Dark Grey Background for Contrast */
254
  .gr-input, textarea, input, .gr-box, .gr-check-radio, .gr-dropdown {
255
  font-family: 'JetBrains Mono', monospace !important;
 
241
  }
242
 
243
  /* Fix Radio/Checkbox alignment & styling */
244
+ fieldset label span {
245
  margin-bottom: 0 !important;
246
  text-shadow: none !important;
247
+ font-weight: 600 !important;
248
+ color: #0f172a !important; /* Dark text for unselected options (white background) */
249
  display: flex !important;
250
  align-items: center !important;
251
  }
252
 
253
+ /* Selected radio button text should be white */
254
+ fieldset label.selected span {
255
+ color: #ffffff !important;
256
+ }
257
+
258
  /* Inputs & Textareas - Dark Grey Background for Contrast */
259
  .gr-input, textarea, input, .gr-box, .gr-check-radio, .gr-dropdown {
260
  font-family: 'JetBrains Mono', monospace !important;