Skip to content

Commit 8c3514f

Browse files
committed
Make 'Semantic Info' menu active (not sure why it was disabled)
1 parent 4d1e195 commit 8c3514f

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

ts/a11y/explorer/ExplorerPool.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ const allExplorers: { [options: string]: ExplorerInit } = {
170170
pool,
171171
doc.explorerRegions.tooltip3,
172172
node,
173-
(x: HTMLElement) => x.hasAttribute('data-semantic-prefix'),
174-
(x: HTMLElement) => x.getAttribute('data-semantic-prefix')
173+
(x: HTMLElement) => x.hasAttribute?.('data-semantic-prefix-none'),
174+
(x: HTMLElement) => x.getAttribute?.('data-semantic-prefix-none')
175175
),
176176
flame: (
177177
doc: ExplorerMathDocument,

ts/a11y/explorer/Region.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,14 +323,18 @@ export class ToolTip extends StringRegion {
323323
height: 'auto',
324324
opacity: 1,
325325
'text-align': 'center',
326-
'border-radius': '6px',
326+
'border-radius': '4px',
327327
padding: 0,
328328
'border-bottom': '1px dotted black',
329329
position: 'absolute',
330330
display: 'inline-block',
331331
'background-color': 'white',
332332
'z-index': 202,
333333
},
334+
['.' + ToolTip.className + ' > div']: {
335+
'border-radius': 'inherit',
336+
padding: '0 2px',
337+
}
334338
});
335339
}
336340

ts/ui/menu/Menu.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,6 @@ export class Menu {
831831
this.checkbox('Role', 'Role', 'infoRole'),
832832
this.checkbox('Prefix', 'Prefix', 'infoPrefix'),
833833
],
834-
true
835834
),
836835
this.rule(),
837836
this.submenu('Role Description', 'Describe math as', [

0 commit comments

Comments
 (0)