mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
ffb0fd30b6
commit
d131f21626
27 changed files with 180 additions and 115 deletions
|
@ -109,11 +109,14 @@ Custom property | Description | Default
|
|||
}
|
||||
},
|
||||
|
||||
ready: function() {
|
||||
if (Polymer.dom(this).textContent == '') {
|
||||
attached: function() {
|
||||
var trimmedText = Polymer.dom(this).textContent.trim();
|
||||
if (trimmedText === '') {
|
||||
this.$.checkboxLabel.hidden = true;
|
||||
} else {
|
||||
this.setAttribute('aria-label', Polymer.dom(this).textContent);
|
||||
}
|
||||
// Don't stomp over a user-set aria-label.
|
||||
if (trimmedText !== '' && !this.getAttribute('aria-label')) {
|
||||
this.setAttribute('aria-label', trimmedText);
|
||||
}
|
||||
this._isReady = true;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue