Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@interledger/docs-design-system",
"version": "0.8.0",
"version": "0.9.0",
"type": "module",
"description": "Shared styles and components used across all Interledger Starlight documentation sites",
"exports": {
Expand Down
4 changes: 2 additions & 2 deletions src/components/LargeImg.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
const { src, alt, hasBorder = true } = Astro.props;
const { src, alt, hasBorder = true, viewLabel="View full image" } = Astro.props;
---
<div>
{hasBorder ? <img src={src} alt={alt} class="border" /> : <img src={src} alt={alt} />}
Expand All @@ -8,7 +8,7 @@ const { src, alt, hasBorder = true } = Astro.props;
target='_blank'
rel='noopener noreferrer'
>
View full image
{viewLabel}
</a>
</div>

Expand Down
1 change: 0 additions & 1 deletion src/components/Mermaid.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const { graph, hasBorder = false } = Astro.props;

{hasBorder ? <pre class="mermaid border" set:html={graph} /> : <pre class="mermaid" set:html={graph} />}


<style>
pre.mermaid.mermaid {
background-color: transparent;
Expand Down
6 changes: 3 additions & 3 deletions src/components/MermaidWrapper.astro
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
const { hasBorder = true, diagramName="diagram" } = Astro.props;
const { hasBorder = true, diagramName="diagram", viewLabel="View full diagram", downloadLabel="Download diagram" } = Astro.props;
---
<div>
{hasBorder ?
<div class="not-content border mermaid-wrapper"><slot /></div> :
<div class="not-content"><slot /></div>
}
<button data-mermaid-view class="button">
<span>View full diagram</span>
<span>{viewLabel}</span>
</button>

<button data-mermaid-download={diagramName} class="button">
<span>Download diagram</span>
<span>{downloadLabel}</span>
</button>
</div>

Expand Down