mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Fixed accessibility issues with pagination button
- Replaced the h6 tags with the role heading - Gave the gear button the roles in order to be detected as an expandable menu - Replaced the dropdown structure to render a menu of listboxes - Added the aria-selected attribute
This commit is contained in:
@@ -167,7 +167,7 @@ export class PaginationComponent implements OnDestroy, OnInit {
|
||||
/**
|
||||
* Number of items per page.
|
||||
*/
|
||||
public pageSize$;
|
||||
public pageSize$: Observable<number>;
|
||||
|
||||
/**
|
||||
* Declare SortDirection enumeration to use it in the template
|
||||
@@ -188,7 +188,7 @@ export class PaginationComponent implements OnDestroy, OnInit {
|
||||
/**
|
||||
* Name of the field that's used to sort by
|
||||
*/
|
||||
public sortField$;
|
||||
public sortField$: Observable<string>;
|
||||
public defaultSortField = 'name';
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user