Skip to content

Commit

Permalink
Merge pull request #145 from openstax/k12-589/Upgrade-mathlive
Browse files Browse the repository at this point in the history
Upgrade mathlive to version 0.98.6
  • Loading branch information
MReyna12 authored Feb 8, 2024
2 parents ca9327c + f42f0da commit 915b41b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@khanacademy/kas": "github:openstax/raise-kas#6481127dacbd9fda7d34a6e79f27d0e4cb4798d5",
"bootstrap": "^5.3.2",
"formik": "^2.4.5",
"mathlive": "^0.95.5",
"mathlive": "^0.98.6",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"uuid": "^9.0.1",
Expand Down
4 changes: 3 additions & 1 deletion specs/blocks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ test('Math field component rendered', async ({ page }) => {
await page.goto('/')
await page.locator('math-field').click()
await page.waitForSelector('.ML__keyboard')
await page.keyboard.type('3\\sqrt2+2')
await page.keyboard.type('3\\sqrt')
await page.keyboard.down('Enter')
await page.keyboard.type('2+2')
await page.waitForSelector('text=3')
await page.locator('text=Check').click()
await page.waitForSelector('text=Correct')
Expand Down
4 changes: 4 additions & 0 deletions src/styles/interactives.scss
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ math-field::part(virtual-keyboard-toggle) {
display: none;
}

math-field::part(menu-toggle) {
display: none;
}

// Textarea Styles
.os-textarea-disabled.os-textarea-disabled {
box-shadow: none;
Expand Down

0 comments on commit 915b41b

Please sign in to comment.