Skip to content

fix(vidstack): reapply caption styles on remount - #1817

Merged
mihar-22 merged 1 commit into
mainfrom
codex/1628-caption-styles-remount
May 26, 2026
Merged

fix(vidstack): reapply caption styles on remount#1817
mihar-22 merged 1 commit into
mainfrom
codex/1628-caption-styles-remount

Conversation

@mihar-22

Copy link
Copy Markdown
Member

Summary

  • apply current caption font CSS vars whenever a player is registered for the global font watcher
  • reuse the same per-player CSS var application path for signal updates and remounts
  • add a regression test covering stored caption styles on a newly added player after the watcher is already initialized

Fixes #1628.

Validation

  • pnpm --filter vidstack test -- src/core/font/font-vars.test.ts
  • pnpm --filter vidstack typecheck

@mihar-22
mihar-22 marked this pull request as ready for review May 26, 2026 06:54
@mihar-22
mihar-22 merged commit 4a1e036 into main May 26, 2026
1 check passed
@mihar-22
mihar-22 deleted the codex/1628-caption-styles-remount branch May 26, 2026 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Captions style settings are not reapplied after navigation in Nuxt 3

1 participant