Skip to content

Commit 09bec73

Browse files
authored
Merge pull request #1400 from mathjax/fix/inline-icon
Fix position of inline help icon caused by changes in #1350
2 parents af44f98 + d8d8fc4 commit 09bec73

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

ts/a11y/explorer.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,15 +406,19 @@ export function ExplorerMathDocumentMixin<
406406

407407
'mjx-container > mjx-help': {
408408
display: 'none',
409-
position: 'sticky',
410-
inset: '-100% 0 100% 0',
411-
margin: '-.3em -.5em 0 -.1em',
409+
position: 'absolute',
410+
top: '-.3em',
411+
right: '-.5em',
412412
width: '.6em',
413413
height: '.6em',
414414
cursor: 'pointer',
415415
},
416416
'mjx-container[display="true"] > mjx-help': {
417+
position: 'sticky',
418+
inset: '-100% 0 100% 0',
419+
margin: '-.3em -.5em 0 -.1em',
417420
right: 0,
421+
top: 'initial',
418422
},
419423
'mjx-help > svg': {
420424
stroke: 'black',

0 commit comments

Comments
 (0)