Fix class and element names
This commit is contained in:
parent
54d71126d9
commit
97699d513b
5 changed files with 7 additions and 7 deletions
|
@ -11,7 +11,7 @@ class EmbyButton extends HTMLButtonElement {
|
|||
return;
|
||||
}
|
||||
|
||||
this.classList.add('../../elements/emby-button/emby-button');
|
||||
this.classList.add('emby-button');
|
||||
// TODO replace all instances of element-showfocus with this method
|
||||
if (layoutManager.tv) {
|
||||
// handles all special css for tv layout
|
||||
|
|
|
@ -5,14 +5,14 @@ import 'webcomponents.js/webcomponents-lite';
|
|||
const EmbyButtonPrototype = Object.create(HTMLButtonElement.prototype);
|
||||
|
||||
EmbyButtonPrototype.createdCallback = function () {
|
||||
this.classList.add('../../elements/emby-button/paper-icon-button-light');
|
||||
this.classList.add('paper-icon-button-light');
|
||||
|
||||
if (layoutManager.tv) {
|
||||
this.classList.add('show-focus');
|
||||
}
|
||||
};
|
||||
|
||||
document.registerElement('../../elements/emby-button/paper-icon-button-light', {
|
||||
document.registerElement('paper-icon-button-light', {
|
||||
prototype: EmbyButtonPrototype,
|
||||
extends: 'button'
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue