Skip to content

Commit

Permalink
Added title attribute on layout views (#75)
Browse files Browse the repository at this point in the history
* Added title attribute on layout views
  • Loading branch information
nsharma123 authored Jun 16, 2022
1 parent 1f63637 commit 507e597
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "The Internet Archive Collection Browser.",
"license": "AGPL-3.0-only",
"author": "Internet Archive",
"version": "0.2.2",
"version": "0.2.3",
"main": "dist/index.js",
"module": "dist/index.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions src/sort-filter-bar/sort-filter-bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ export class SortFilterBar
this.displayMode = 'grid';
}}
class=${this.displayMode === 'grid' ? 'active' : ''}
title="Tile view"
>
${tileIcon}
</button>
Expand All @@ -370,6 +371,7 @@ export class SortFilterBar
this.displayMode = 'list-detail';
}}
class=${this.displayMode === 'list-detail' ? 'active' : ''}
title="Extended list view"
>
${listIcon}
</button>
Expand All @@ -381,6 +383,7 @@ export class SortFilterBar
this.displayMode = 'list-compact';
}}
class=${this.displayMode === 'list-compact' ? 'active' : ''}
title="Compact list view"
>
${compactIcon}
</button>
Expand Down

0 comments on commit 507e597

Please sign in to comment.