"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/sort/sort-header.ts" between
material2-7.3.3.tar.gz and material2-7.3.4.tar.gz

About: material2 offers Material Design components for Angular.

sort-header.ts  (material2-7.3.3):sort-header.ts  (material2-7.3.4)
skipping to change at line 291 skipping to change at line 291
* Gets the aria-sort attribute that should be applied to this sort header. If this header * Gets the aria-sort attribute that should be applied to this sort header. If this header
* is not sorted, returns null so that the attribute is removed from the host element. Aria spec * is not sorted, returns null so that the attribute is removed from the host element. Aria spec
* says that the aria-sort property should only be present on one header at a time, so removing * says that the aria-sort property should only be present on one header at a time, so removing
* ensures this is true. * ensures this is true.
*/ */
_getAriaSortAttribute() { _getAriaSortAttribute() {
if (!this._isSorted()) { return null; } if (!this._isSorted()) { return null; }
return this._sort.direction == 'asc' ? 'ascending' : 'descending'; return this._sort.direction == 'asc' ? 'ascending' : 'descending';
} }
/** Whether the arrow inside the sort header should be rendered. */
_renderArrow() {
return !this._isDisabled() || this._isSorted();
}
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)