klydekushy commited on
Commit
ba7cd34
·
verified ·
1 Parent(s): 3ce2b8f

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +44 -1
src/streamlit_app.py CHANGED
@@ -347,7 +347,50 @@ label:focus,
347
  box-shadow: none !important;
348
  }
349
 
350
- /* === SUPPRESSION DE LA SÉLECTION DE TEXTE (comme Word) === */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
351
 
352
  /* Empêche la sélection de texte sur les éléments UI */
353
  .stButton,
 
347
  box-shadow: none !important;
348
  }
349
 
350
+ /* === SUPPRESSION SPÉCIFIQUE DU SURLIGNAGE DES BOUTONS RADIO === */
351
+ .stRadio div[role="radiogroup"]:focus,
352
+ .stRadio div[role="radiogroup"]:active,
353
+ .stRadio div[role="radiogroup"]:focus-visible,
354
+ .stRadio label:focus,
355
+ .stRadio label:active,
356
+ .stRadio label:focus-visible {
357
+ outline: none !important;
358
+ box-shadow: none !important;
359
+ border: none !important;
360
+ }
361
+
362
+ /* Suppression du background de sélection sur les labels radio */
363
+ .stRadio label::selection,
364
+ .stRadio label::-moz-selection {
365
+ background: transparent !important;
366
+ color: inherit !important;
367
+ }
368
+
369
+ /* Cible spécifiquement les éléments radio dans la sidebar */
370
+ [data-testid="stSidebar"] .stRadio div[role="radiogroup"] {
371
+ outline: none !important;
372
+ }
373
+
374
+ /* Supprime le focus ring sur les éléments radio */
375
+ [data-testid="stSidebar"] .stRadio [data-baseweb="radio"]:focus {
376
+ outline: none !important;
377
+ box-shadow: none !important;
378
+ }
379
+
380
+ /* Option supplémentaire : si le problème persiste, ajoutez */
381
+ .stRadio > div {
382
+ -webkit-tap-highlight-color: transparent !important;
383
+ tap-highlight-color: transparent !important;
384
+ }
385
+
386
+ /* SUPPRESSION COMPLÈTE DES ÉTATS DE SÉLECTION */
387
+ .stRadio *::selection,
388
+ .stRadio *::-moz-selection,
389
+ [data-testid="stSidebar"] *::selection,
390
+ [data-testid="stSidebar"] *::-moz-selection {
391
+ background: transparent !important;
392
+ color: inherit !important;
393
+ }
394
 
395
  /* Empêche la sélection de texte sur les éléments UI */
396
  .stButton,