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

Devvit Blocks | Component button does not show caution appearance type correctly

Aperta
#165 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Start with the Devvit Blocks button implementation and trace how the appearance="caution" example from the linked button documentation is compiled to CSS classes. Compare the generated button-secondary class with the existing button-caution CSS. Done means caution buttons render yellow while secondary buttons retain their dark grey appearance.

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

Descrizione

blocks
Issue

Using the Block component shows up the same as i.e. a dark grey color rather than yellow

Example Devvit Code

<button appearance="caution" onPress={() => someAction('here') }>

however, as per the documentation here: Devvit docs the style should be yellow

Expected Resolution

This appears to happen since the css is compiled to class button-secondary rather than button-caution. Please correct the compilation, since the caution class does appear to be present in the css, maybe the build process incorrectly compiles to secondary instead.

Hoping for a quick resolution. Thanks!

Lingua principale
TypeScript
Stelle
210
Fork
88
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 reddit/devvit

Tutte le issue di reddit/devvit

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.