Skip to content

Commit b0993b6

Browse files
fix(a11y): extract theme and fix pnpm overides (#392)
1 parent 6c7b961 commit b0993b6

File tree

5 files changed

+21
-7
lines changed

5 files changed

+21
-7
lines changed

.changeset/fuzzy-mice-hunt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/devtools-a11y': patch
3+
---
4+
5+
Extract theme provider and fix pnpm overrides

examples/react/a11y-devtools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test:types": "tsc"
1010
},
1111
"dependencies": {
12-
"@tanstack/devtools-a11y": "workspace:*",
12+
"@tanstack/devtools-a11y": "^0.1.1",
1313
"@tanstack/react-devtools": "^0.10.0",
1414
"react": "^19.2.0",
1515
"react-dom": "^19.2.0"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
},
8585
"overrides": {
8686
"@tanstack/devtools": "workspace:*",
87+
"@tanstack/devtools-a11y": "workspace:*",
8788
"@tanstack/react-devtools": "workspace:*",
8889
"@tanstack/preact-devtools": "workspace:*",
8990
"@tanstack/solid-devtools": "workspace:*",
Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
/** @jsxImportSource solid-js */
2-
2+
import { ThemeContextProvider } from '@tanstack/devtools-ui'
33
import { AllyProvider } from '../contexts/allyContext'
44
import { Shell } from './Shell'
55

6-
export default function Devtools() {
6+
import type { TanStackDevtoolsTheme } from '@tanstack/devtools-ui'
7+
8+
interface DevtoolsProps {
9+
theme: TanStackDevtoolsTheme
10+
}
11+
12+
export default function Devtools(props: DevtoolsProps) {
713
return (
8-
<AllyProvider>
9-
<Shell />
10-
</AllyProvider>
14+
<ThemeContextProvider theme={props.theme}>
15+
<AllyProvider>
16+
<Shell />
17+
</AllyProvider>
18+
</ThemeContextProvider>
1119
)
1220
}

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)