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

Add title to preset themes

Aperta
#195 4 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
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript

Direzione di ricerca

Inizia esaminando src/web/lib/components/PresetThemeSelector/index.js alla riga collegata e src/lib/themes.js intorno a normalizeTheme(). Verifica come vengono forniti i titoli ai temi preimpostati e salvati, quindi verifica il comportamento al passaggio del mouse sul sito github.io o localmente. Il lavoro è completato quando i temi preimpostati espongono un titolo significativo e il comportamento dei temi salvati è considerato esplicitamente.

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

Descrizione

needs:product Priority: p4 stretch

When hovering over a preset theme, we should probably set a title attribute with the theme's title.
In fact, it looks like we do, but it isn't showing up for me locally, or on the github.io site.

https://github.com/mozilla/Themer/blob/413aa25b78865392779fdb680735d52d32568d03/src/web/lib/components/PresetThemeSelector/index.js#L15

Not sure if we need to tweak normalizeTheme() to possibly account for a title...
https://github.com/mozilla/Themer/blob/413aa25b78865392779fdb680735d52d32568d03/src/lib/themes.js#L45-L67

Not sure how we could add a meaningful title to the saved themes since I don't think we have the UI currently for the user to set a custom title. And I don't how how useful a generated title would be. We could do something boring like `title="Saved theme 3", but not sure how useful that'd be for a11y or screen readers. Especially since I think the saved themes get saved to the front of the queue so your numbering would always change by 1 when you add a new theme.

Lingua principale
JavaScript
Stelle
506
Fork
100
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

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 mozilla/FirefoxColor

Tutte le issue di mozilla/FirefoxColor

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.