1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-21 01:39:04 +02:00
video.js/test/unit
mister-ben 1afe5049e6
feat: Adds a transient button component (#8629)
## Description
Adds a `TransientButton` component for the types of button that are
shown on top of the video briefly during playback and reappear when
there is user activity. e.g. Unmute buttons, skip intro. It aims is to
be a generic button type to be extended. Some basic styles are provided
but kept light to not complicate customisation.
It's important to insert a transient button before the control bar for
the tab order to make sense.

_Optionally_ takes focus when shown.

## Specific Changes proposed
Adds `TransientButton` component.

## Requirements Checklist
- [x] Feature implemented / Bug fixed
- [ ] If necessary, more likely in a feature request than a bug fix
- [x] Change has been verified in an actual browser (Chrome, Firefox,
IE)
  - [x] Unit Tests updated or fixed
  - [ ] Docs/guides updated
- [x] Example:
https://deploy-preview-8629--videojs-preview.netlify.app/sandbox/transient-button.html
- [x] Has no DOM changes which impact accessiblilty or trigger warnings
(e.g. Chrome issues tab)
  - [x] Has no changes to JSDoc which cause `npm run docs:api` to error
- [ ] Reviewed by Two Core Contributors
2024-07-06 07:40:31 +01:00
..
control-bar fix(skip-forward): error when clicking after player reset (#8258) 2023-05-31 10:30:49 -04:00
mixins Fix several typos in docs and comments (#8110) 2023-03-22 15:00:01 +01:00
tech fix(jsdoc): corrections to jsdoc (#8277) 2023-05-31 11:12:57 -04:00
tracks fix: removes duplicate id in text track settings (#8755) 2024-06-01 23:11:52 +02:00
utils fix(dom): handle slotted parent transform position (#8158) 2024-05-03 14:23:30 +02:00
autoplay.test.js feat: update exposed utility functions and deprecate several top-level methods of the videojs global (#7761) 2022-11-23 09:49:23 -05:00
button.test.js fix: Reduce the multiple-announcement by screen readers of the new name of a button when its text label changes. (#5158) 2018-05-11 14:31:28 -04:00
clickable-component.test.js feat: easier configuration of buttons and components via options (#7611) 2022-03-21 12:21:26 -04:00
close-button.test.js refactor: Replace keycode dependency with event.key (#8735) 2024-05-23 18:50:23 +02:00
component.test.js feat: implement spatial navigation (#8570) 2024-04-17 19:34:52 -06:00
controls.test.js fix: progress bar sometimes is not filled on 100% (#8633) 2024-05-03 13:57:32 +02:00
error-display.test.js fix: error-display (#8529) 2024-01-30 11:32:58 -05:00
event-target.test.js test: memory leak fixes in tests (#5861) 2019-03-18 15:49:48 -04:00
events.test.js fix(jsdoc): corrections to jsdoc (#8277) 2023-05-31 11:12:57 -04:00
live-tracker.test.js feat: update exposed utility functions and deprecate several top-level methods of the videojs global (#7761) 2022-11-23 09:49:23 -05:00
loading-spinner.test.js fix: Ensure additional components update on languagechange (#8175) 2023-04-04 16:54:36 -04:00
media-error.test.js feat: improved error interface (#8564) 2024-01-25 08:57:16 -06:00
menu.test.js feat: Add useSVGIcons option (#8260) 2023-06-12 13:31:06 -05:00
modal-dialog.test.js refactor: Replace keycode dependency with event.key (#8735) 2024-05-23 18:50:23 +02:00
play.test.js Fix several typos in docs and comments (#8110) 2023-03-22 15:00:01 +01:00
player-breakpoints.test.js feat: update exposed utility functions and deprecate several top-level methods of the videojs global (#7761) 2022-11-23 09:49:23 -05:00
player-fullscreen.test.js refactor: Replace keycode dependency with event.key (#8735) 2024-05-23 18:50:23 +02:00
player-loadmedia.test.js feat: Add loadMedia and getMedia methods (#5652) 2019-01-03 13:49:34 -05:00
player-play.test.js fix: replay button broken for native playback (#8142) 2023-03-06 10:32:14 -08:00
player-user-actions.test.js refactor: Replace keycode dependency with event.key (#8735) 2024-05-23 18:50:23 +02:00
player.test.js add browser.IS_CHROMECAST_RECEIVER and class name for CSS targeting on a Chromecast receiver where Video.js is used (#8703) 2024-05-30 12:16:43 -07:00
plugin-advanced.test.js feat: Add a default, plugin-specific logger to advanced plugins (#6693) 2020-07-10 11:59:04 -04:00
plugin-basic.test.js feat: Add 'beforepluginsetup' event and named plugin setup events (e.g. 'pluginsetup:foo') (#4255) 2017-05-11 17:13:22 -04:00
plugin-static.test.js chore(test): silence plugin warning from test (#4173) 2017-03-07 14:13:19 -05:00
poster.test.js fix: Remove img el when there's no poster source (#8130) 2023-02-20 10:04:39 +01:00
reset-ui.test.js fix(title-bar): component remains displayed after player reset (#8481) 2023-11-29 10:36:56 +01:00
resize-manager.test.js fix(resize-manager): Prevent tabbing into RM and hide from Screen Readers (#5754) 2019-01-22 16:36:20 -05:00
seek-to-live.test.js feat: update exposed utility functions and deprecate several top-level methods of the videojs global (#7761) 2022-11-23 09:49:23 -05:00
setup.test.js fix(vjsstandard): update to 8.0.2 and fixup linting (#5413) 2018-09-28 14:58:15 -04:00
sourceset.test.js fix(player): techGet is undefined (#8256) 2023-05-31 10:29:35 -04:00
spatial-navigation.test.js feat(player): Make 'searchForTrackSelect_' private & use 'el' as parameter in function 'getIsFocusable' (#8697) 2024-04-18 12:57:27 -06:00
test-helpers.js fix: Improves isSingleLeftClick() to handle mousemove (#6138) 2019-07-29 17:45:40 -04:00
title-bar.test.js feat: add a new title bar component (#7788) 2022-11-23 09:49:25 -05:00
transient-button.test.js feat: Adds a transient button component (#8629) 2024-07-06 07:40:31 +01:00
video.test.js fix: make compatible with chrome 53 (#8354) 2023-07-12 19:43:17 +02:00
videojs-hooks.test.js Fix several typos in docs and comments (#8110) 2023-03-22 15:00:01 +01:00
videojs-integration.test.js refactor: rename fn.bind to fn.bind_ to strongly indicate it should not be used externally (#7940) 2022-11-23 09:49:32 -05:00