forked from shaka-project/shaka-player
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtooltip.js
More file actions
31 lines (27 loc) · 720 Bytes
/
tooltip.js
File metadata and controls
31 lines (27 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*! @license
* Shaka Player
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
goog.provide('shakaDemo.Tooltips');
goog.requireType('shakaDemo.MessageIds');
/**
* Creates and contains a tooltip.
*/
shakaDemo.Tooltips = class {
/**
* @param {!Element} labeledElement
* @param {shakaDemo.MessageIds} message
*/
static make(labeledElement, message) {
tippy(labeledElement, {
content: shakaDemoMain.getLocalizedString(message),
placement: 'bottom',
arrow: true,
animation: 'scale',
size: 'large',
});
// TODO: The tooltip should be unreadable by screen readers, and this
// tooltip info should instead be encoded into the object.
}
};