This is web API specific as I haven't checked out other pages yet, purely the ones I am either working on or reviewing...
The 'syntaxbox' at the top of interface member pages is rendered with smaller text than the example code blocks. After a bit of inspecting I believe this is because syntax pre element doesn't include the class brush: js - instead uses the class syntaxbox and probably notranslate.
We should define a solution, which I put forward as one of the following two options:
We specify brush: js class needs to be added to the syntaxbox pre element
We modify the site css so syntaxbox is rendered correctly
We're almost back in a discussion around syntax boxes being pseudo js... however I don't think the addition of a syntax highlighting class (brush: js) really affects this.
This is web API specific as I haven't checked out other pages yet, purely the ones I am either working on or reviewing...
The 'syntaxbox' at the top of interface member pages is rendered with smaller text than the example code blocks. After a bit of inspecting I believe this is because syntax pre element doesn't include the class
brush: js
- instead uses the classsyntaxbox
and probablynotranslate
.We should define a solution, which I put forward as one of the following two options:
brush: js
class needs to be added to the syntaxbox pre elementsyntaxbox
is rendered correctlyWe're almost back in a discussion around syntax boxes being pseudo js... however I don't think the addition of a syntax highlighting class (
brush: js
) really affects this.@mdn/yari-content-web-api