mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-14 15:56:38 +03:00
81a487aae3
Change-Id: I9b92f9432a8d6bfe0d9d48c76ab1ce74a9994e0f
32 lines
720 B
JavaScript
32 lines
720 B
JavaScript
/*! @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.
|
|
}
|
|
};
|