Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 937fd39

Browse files
TedSandernshahan
authored andcommitted
Make the Gallery a bit more accessible by using FocusList and FocusItem on the navBar.
PiperOrigin-RevId: 225458095
1 parent 8f758ec commit 937fd39

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

angular_components/lib/css/_color_material.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,6 @@ $mat-amber: $mat-amber-500;
514514
// Link colors
515515
//
516516
// Prefer the mat-link mixin in _typography.scss.
517-
//
518-
// Based on discussion at go/mat-link-colors.
519517
$mat-link-default: $mat-blue-700;
520518
$mat-link-visited: $mat-deep-purple-500;
521519
$mat-link-active: $mat-red-700;

angular_gallery/lib/builder/template/gallery.dart.mustache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import 'package:angular_forms/angular_forms.dart';
66
import 'package:angular_components/app_layout/material_persistent_drawer.dart';
77
import 'package:angular_components/content/deferred_content.dart';
88
import 'package:angular_components/focus/focus.dart';
9+
import 'package:angular_components/focus/focus_item.dart';
10+
import 'package:angular_components/focus/focus_list.dart';
911
import 'package:angular_components/highlighted_text/highlighted_value.dart';
1012
import 'package:angular_components/material_button/material_button.dart';
1113
import 'package:angular_components/material_checkbox/material_checkbox.dart';
@@ -28,6 +30,8 @@ import 'gallery_route_library.dart';
2830
directives: [
2931
AutoFocusDirective,
3032
DeferredContentDirective,
33+
FocusItemDirective,
34+
FocusListDirective,
3135
HighlightedValueComponent,
3236
MaterialButtonComponent,
3337
MaterialCheckboxComponent,

angular_gallery/lib/builder/template/gallery.html.mustache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
label="Search"
1010
[filterable]="exampleOptions">
1111
</material-select-searchbox>
12-
<material-list>
12+
<material-list focusList>
1313
<div group *ngFor="let exampleGroup of exampleOptions.optionGroups">
1414
<div label *ngIf="searchbox.inputText.isNotEmpty">Search Results</div>
1515
<material-list-item *ngFor="let example of exampleGroup"
16+
focusItem
1617
[routerLink]="example.link"
1718
routerLinkActive="router-link-active">
1819
<highlight-value [value]="example"></highlight-value>

0 commit comments

Comments
 (0)