react examples and fixes

This commit is contained in:
Cory LaViska
2021-11-04 18:12:47 -04:00
parent a250d9b184
commit 1dd556d6c8
53 changed files with 4483 additions and 62 deletions

View File

@@ -239,10 +239,6 @@
.querySelector('.code-block__button--react')
?.classList.toggle('code-block__button--selected', flavor === 'react');
});
// Expand the code block
codeBlock.classList.add('code-block--expanded');
codeBlock.querySelector('.code-block__toggle').setAttribute('aria-expanded', 'true');
});
// Expand and collapse code blocks
@@ -319,6 +315,7 @@
'\n' +
'body {\n' +
' font: 16px sans-serif;\n' +
' padding: 1rem;\n' +
'}';
// Docs: https://blog.codepen.io/documentation/prefill/