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

Add style options to code snippet's `highlightElements`

Aperta
#6 2 commenti 1 reazione 1 assegnatario Vedi su GitHub

@danswick ci sta già lavorando.

Dal 24/7/2018.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement jira-sync-complete

The code snippet component's current default style works well for self-contained pages like the mapbox.com install pages:

image

However, the hightlight style is perhaps too subtle for some other use cases. For example, tutorials that need to demonstrate which lines have changes from step to step as the reader scrolls through a single, long page. For these types of use cases, it would be useful to expose an option for a "high contrast" mode or a prop for specifying CSS classes to be passed to [highlightElements](https://github.com/mapbox/mr-ui/blob/master/src/components/code-snippet/code-snippet.js#L284).

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

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 mapbox/mr-ui

Tutte le issue di mapbox/mr-ui

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.