Skip to content

Commit 124ce0b

Browse files
committed
commit
1 parent c0ed22c commit 124ce0b

File tree

3 files changed

+2393
-5664
lines changed

3 files changed

+2393
-5664
lines changed

assets/js/module.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ export const registerIFrameHost = ({ id, assets, allowedOrigin }, window) => {
2121
iframe.style.visibility = 'visible';
2222
});
2323
iframe.onload = () => {
24-
var variables = getComputedStyle(document.documentElement);
25-
var r = Array.from(getComputedStyle(document.documentElement)).filter(x => x.startsWith('--')).map(x =>
26-
`${x}: ${variables.getPropertyValue(x)}`
27-
);
28-
assets.css += `:root {\n${r.join(';\n')}}`;
29-
console.log(assets);
3024
var _a;
3125
(_a = iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage(assets, allowedOrigin);
3226
};
@@ -57,4 +51,8 @@ export const registerIFrameClient = (allowedParent, window) => {
5751
if (elem) {
5852
elem.style.height = 'auto';
5953
}
54+
document === null || document === void 0 ? void 0 : document.querySelectorAll('a.btn').forEach((x) => {
55+
x.tabIndex = 0;
56+
x.role = "button";
57+
});
6058
};

0 commit comments

Comments
 (0)