Skip to content

Commit b659ecb

Browse files
committed
feat: add supporting styles for fullview component
1 parent 8695187 commit b659ecb

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@interledger/docs-design-system",
3-
"version": "0.6.2",
3+
"version": "0.7.0",
44
"type": "module",
55
"description": "Shared styles and components used across all Interledger Starlight documentation sites",
66
"exports": {

src/components/MermaidWrapper.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ span::after {
6161
const blob = new Blob([as_text], { type: 'image/svg+xml' })
6262
const url = URL.createObjectURL(blob)
6363
const win = open(url)
64-
win.onload = (evt) => URL.revokeObjectURL(url)
64+
if (win) {
65+
win.onload = (evt) => URL.revokeObjectURL(url);
66+
}
6567
}
6668

6769
const buttons = document.querySelectorAll('[data-mermaid-button]');

src/components/Tooltip.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ tooltips.forEach((tooltip) => {
9494
});
9595
});
9696

97-
const buttons = document.querySelectorAll('[data-tooltip-button]');
97+
const buttons = document.querySelectorAll<HTMLInputElement>('[data-tooltip-button]');
9898
buttons.forEach((button) => {
9999
button.addEventListener('click', function() {
100100
if (this.getAttribute('aria-expanded') === 'true') {
@@ -118,7 +118,7 @@ buttons.forEach((button) => {
118118
});
119119

120120
button.addEventListener('keydown', function(e) {
121-
if ((e.keyCode || e.which) === 27) {
121+
if (e.key === "Escape") {
122122
this.setAttribute('aria-expanded', 'false');
123123
}
124124
});

src/styles/ilf-docs.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ input:not([type="submit"]):not([type="file"]):focus {
510510
}
511511

512512
@media screen and (min-width: 80rem) {
513-
.expressive-code {
513+
.main-pane:not(.full-view) .expressive-code {
514514
max-width: 48rem;
515515
}
516516
}

0 commit comments

Comments
 (0)