fix: beta rwd - make step heading h1 (#45036)

This commit is contained in:
Bruce B
2022-02-10 02:14:58 -08:00
committed by GitHub
parent 4fe2271f74
commit 2c8b9f7815
2 changed files with 10 additions and 1 deletions

View File

@ -45,6 +45,15 @@
max-width: 700px;
}
.description-container h1 {
color: var(--secondary-color);
font-family: Roboto Mono, monospace;
font-size: 1.1rem;
font-weight: 700;
line-height: 1.1;
margin: 0 0 0.6rem;
}
.description-highlighter {
background-color: var(--secondary-background);
opacity: 1;

View File

@ -536,7 +536,7 @@ const Editor = (props: EditorProps): JSX.Element => {
function createDescription(editor: editor.IStandaloneCodeEditor) {
if (dataRef.current.descriptionNode) return dataRef.current.descriptionNode;
const { description, title } = props;
const jawHeading = document.createElement('h3');
const jawHeading = document.createElement('h1');
jawHeading.innerText = title;
const domNode = document.createElement('div');
const desc = document.createElement('div');