Skip to content

Commit

Permalink
feat(root): add Stackblitz functionality to component code examples
Browse files Browse the repository at this point in the history
updated code examples to work with the new Stackblitz functionality, add toggle button to switch
between typescript and javascript, add show more/less button to component code examples

. #773 #774 #751
  • Loading branch information
GCHQ-Developer-112 committed Apr 15, 2024
1 parent a3ebcb0 commit 82976f3
Show file tree
Hide file tree
Showing 44 changed files with 6,646 additions and 2,230 deletions.
8 changes: 4 additions & 4 deletions src/components/CodePreview/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
justify-content: space-between;
}

.toggle-button-container {
margin: auto var(--ic-space-xs) auto 0;
}

.comp-preview {
position: relative;
border: 1px solid var(--ic-architectural-300);
Expand Down Expand Up @@ -71,12 +75,8 @@

.snippet-container {
display: flex;
justify-content: flex-end;
background-color: var(--ic-architectural-40) !important;
padding: var(--ic-space-xxs);
}

.snippet-container.pattern {
justify-content: space-between;
}

Expand Down
Loading

0 comments on commit 82976f3

Please sign in to comment.