1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-25 12:15:18 +01:00

Add collection name to title attribute of collection filters on desktop (#5131)

If a collection name is long the name gets collapsed and
the user cannot see the full name until they enter this collection.

Adding the name to the title of the button displays the collection's
full name on hover as a tooltip in most browsers.

Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
This commit is contained in:
Ana Rute Mendes 2023-06-07 01:20:36 +02:00 committed by GitHub
parent 78248db590
commit ec936f883f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,6 +51,7 @@
class="filter-button" class="filter-button"
(click)="applyFilter(c.node)" (click)="applyFilter(c.node)"
[attr.aria-pressed]="c.node.id === activeFilter.selectedCollectionId" [attr.aria-pressed]="c.node.id === activeFilter.selectedCollectionId"
[title]="c.node.name"
> >
<i <i
*ngIf="c.children.length === 0" *ngIf="c.children.length === 0"