Skip to content

Commit 6261f18

Browse files
committed
fix(player): add focus styles to live button default theme
1 parent 5e5c1b9 commit 6261f18

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

packages/vidstack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"types": "pnpm build:types && rollup -c --config-types",
3232
"clean": "rimraf dist cdn",
3333
"format": "prettier src --write --loglevel warn",
34-
"sandbox": "node ../../.scripts/sandbox.js",
34+
"sandbox": "node ../../.scripts/sandbox.js & node rollup.config.js -w",
3535
"sandbox:build": "vite build sandbox",
3636
"test": "vitest --run",
3737
"test:watch": "vitest --watch",

packages/vidstack/player/styles/default/buttons.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@
119119
transition: color 0.3s ease;
120120
}
121121

122+
:where(.vds-live-button[data-focus] .vds-live-button-text) {
123+
box-shadow: var(--media-focus-ring);
124+
}
125+
122126
:where(.vds-live-button[data-edge]) {
123127
cursor: unset;
124128
}

packages/vidstack/src/components/ui/buttons/live-button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class LiveButton extends Component<LiveButtonProps> {
4646
this.setAttributes({
4747
'data-edge': liveEdge,
4848
'data-hidden': isHidden,
49-
'aria-disabled': $ariaBool(disabled),
49+
'aria-disabled': $ariaBool(() => disabled() || liveEdge()),
5050
'aria-hidden': $ariaBool(isHidden),
5151
});
5252
}

0 commit comments

Comments
 (0)