juancauma commited on
Commit
fb877dd
·
1 Parent(s): 94835af

changes to font color

Browse files
Files changed (2) hide show
  1. app.py +18 -0
  2. styles.css +16 -0
app.py CHANGED
@@ -372,6 +372,24 @@ with gr.Blocks(css=custom_css, title="TD-EVAL Leaderboard", theme=custom_theme)
372
  var parent = checkbox.parentElement;
373
  if (parent) parent.style.backgroundColor = 'transparent';
374
  checkbox.style.backgroundColor = 'transparent';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
375
  });
376
  }
377
 
 
372
  var parent = checkbox.parentElement;
373
  if (parent) parent.style.backgroundColor = 'transparent';
374
  checkbox.style.backgroundColor = 'transparent';
375
+
376
+ // Find and style the associated label to be white
377
+ var label = checkbox.nextElementSibling;
378
+ if (label && label.tagName === 'LABEL') {
379
+ label.style.color = '#FFFFFF';
380
+ }
381
+
382
+ // Also find any span elements that might contain the label text
383
+ var spans = parent.querySelectorAll('span');
384
+ spans.forEach(function(span) {
385
+ span.style.color = '#FFFFFF';
386
+ });
387
+
388
+ // Find label elements in the parent container
389
+ var labels = parent.querySelectorAll('label');
390
+ labels.forEach(function(label) {
391
+ label.style.color = '#FFFFFF';
392
+ });
393
  });
394
  }
395
 
styles.css CHANGED
@@ -263,4 +263,20 @@ div[class*="block"] {
263
  .search-panel input[type="text"],
264
  .search-panel input[type="text"]::placeholder {
265
  color: rgba(255,255,255,0.9) !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
266
  }
 
263
  .search-panel input[type="text"],
264
  .search-panel input[type="text"]::placeholder {
265
  color: rgba(255,255,255,0.9) !important;
266
+ }
267
+
268
+ /* Style the checkbox labels to ensure they have white text */
269
+ .checkbox-panel label,
270
+ .checkbox-panel .label-wrap,
271
+ .checkbox-panel .label-wrap span {
272
+ color: #FFFFFF !important;
273
+ }
274
+
275
+ /* Make the checkbox text fully opaque and sharp */
276
+ .checkbox-panel input[type="checkbox"] + label,
277
+ .checkbox-panel input[type="checkbox"] ~ label,
278
+ .checkbox-panel input[type="checkbox"] ~ div label {
279
+ color: #FFFFFF !important;
280
+ opacity: 1 !important;
281
+ font-weight: normal;
282
  }