fix: code highlight styles are now only applied pre.microlight (#5673)
* patch(#5672): code highlight styles are now only applied to pre blocks that have the class pre.microlight * fixed pre style appied to .request-url * fixed response-headers and request-duration pre blocks * made pre.microlight class as per review * added microlight class to appropriate pre and added tests
This commit is contained in:
committed by
kyle shockey
parent
7e5974c14f
commit
e8266a3c6d
@@ -7,7 +7,7 @@ const Headers = ( { headers } )=>{
|
||||
return (
|
||||
<div>
|
||||
<h5>Response headers</h5>
|
||||
<pre>{headers}</pre>
|
||||
<pre className="microlight">{headers}</pre>
|
||||
</div>)
|
||||
}
|
||||
Headers.propTypes = {
|
||||
@@ -18,7 +18,7 @@ const Duration = ( { duration } ) => {
|
||||
return (
|
||||
<div>
|
||||
<h5>Request duration</h5>
|
||||
<pre>{duration} ms</pre>
|
||||
<pre className="microlight">{duration} ms</pre>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -75,7 +75,7 @@ export default class LiveResponse extends React.Component {
|
||||
{ url && <div>
|
||||
<h4>Request URL</h4>
|
||||
<div className="request-url">
|
||||
<pre>{url}</pre>
|
||||
<pre className="microlight">{url}</pre>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user