Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

BBButton: subtle variant with neutral color has an opaque white background, so it renders white on white in dark mode

Aperta Adatta ai principianti
#100 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

Inizia leggendo le definizioni delle varianti di Button mostrate in dist/components/Button.js e individua il codice sorgente e i test corrispondenti alla variante neutra subtle di BBButton. Confrontala con subtle.default e verifica il comportamento esistente delle variabili del tema. Il lavoro è completato quando il pulsante neutro subtle ha uno sfondo trasparente, testo leggibile e lo sfondo grigio chiaro specificato al passaggio del mouse, senza modificare altre varianti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Description

The subtle + neutral combination uses the same colours as primary.neutral: an opaque --color-neutral-white background with --color-gray text. Every other subtle button has a transparent background, as in subtle.default.

In the BigBlueButton HTML5 client's dark theme, --color-gray turns white. --color-neutral-white is deliberately left alone, because the library also uses it as the label colour over brand backgrounds. The button ends up white on white.

Found on the pre-flight "Settings" button (bigbluebutton/bigbluebutton#25842).

Steps to reproduce
  1. Render <BBButton variant="subtle" color="neutral" label="Settings" onClick={...} /> on a dark surface.
  2. Override --color-gray with a light colour, as the client's dark theme does.

Expected: a transparent background, as on the other subtle buttons, with readable text.

Actual: a white pill with near-invisible text. In the light theme the white pill also stands out on any surface that isn't white.

Cause

From dist/components/Button.js (0.8.0):

subtle: {
  default: { color: R, iconColor: N, background: "transparent", border: !1, hoverColor: R, hoverBackground: E, hoverBorder: !1, outline: N },
  neutral: { color: C, background: k, border: !1, hoverColor: C, hoverBackground: S, hoverBorder: !1, outline: B }, // same as primary.neutral
}
// k = --color-neutral-white, C = --color-gray, S = --color-brand-aux, E = --color-light-gray
Suggested fix

Make subtle.neutral transparent like subtle.default and change only the text colour:

neutral: { color: C, iconColor: C, background: "transparent", border: !1, hoverColor: C, hoverBackground: E, hoverBorder: !1, outline: N },

The hover then uses --color-light-gray, which themes can already override.

Workaround

The client uses variant="subtle" without color.

Lingua principale
TypeScript
Stelle
2
Fork
5
Merge medio
2g 5h
PR unite (30g)
9

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bigbluebutton/bbb-ui-components-react

Tutte le issue di bigbluebutton/bbb-ui-components-react

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.