Skip to content

Commit

Permalink
a11y: give page title if none
Browse files Browse the repository at this point in the history
  • Loading branch information
atotic authored and - committed May 28, 2015
1 parent ab3210b commit 0f39606
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion iron-component-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ <h2><span>[[active]]</span> <span class="version" hidden$="[[!version]]">[[versi
/**
* The relative root for determining paths to demos and default source
* detection.
* @default ownerDocument.baseURI
*/
base: {
type: String,
observer: '_srcChanged',
value: function() {
return this.ownerDocument.baseURI;
}
Expand Down Expand Up @@ -357,6 +357,9 @@ <h2><span>[[active]]</span> <span class="version" hidden$="[[!version]]">[[versi
this.$.headerPanel.scroller.scrollTop = 0;
this.view = 'docs';
this._activeDescriptor = this._findDescriptor(this.active);
if (this._activeDescriptor.is && !document.title) {
document.title = this._activeDescriptor.is + " documentation";
}
this._setDocDemos(this._activeDescriptor ? this._activeDescriptor.demos : []);
this._firstDemoUrl = this.docDemos && this.docDemos.length ? this.docDemos[0].path : null;
}
Expand Down

0 comments on commit 0f39606

Please sign in to comment.