You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code snippet component's current default style works well for self-contained pages like the mapbox.com install pages:
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).
The text was updated successfully, but these errors were encountered:
Good point, @danswick. I do wonder if the same critique could be applied to the install flow right now — so if we want to increase the contrast for tutorials we should do the same for the install flow. That would mean changing the defaults instead of adding a new option.
The code snippet component's current default style works well for self-contained pages like the mapbox.com install pages:
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)
.The text was updated successfully, but these errors were encountered: