Skip to content

Commit fdd4984

Browse files
authored
Merge pull request #2618 from Azure/shpaster/a11y-bugs
Accessibility bug fixes
2 parents 07fa029 + 158347f commit fdd4984

File tree

6 files changed

+18
-14
lines changed

6 files changed

+18
-14
lines changed

data/themes/classic.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@
5656
"core-count": "#1c3f95",
5757
"low-priority-core-count": "#a36a00",
5858
"task-start-event": "#a36a00",
59-
"task-complete-event": "#388e3c",
59+
"task-complete-event": "#428000",
6060
"task-fail-event": "#aa3939",
6161
"starting-node-count": "#1c3f95",
6262
"idle-node-count": "#be93d9",
63-
"running-node-count": "#388e3c",
63+
"running-node-count": "#428000",
6464
"start-task-failed-node-count": "#aa3939",
6565
"rebooting-node-count": "#ff755c"
6666
},
@@ -74,10 +74,5 @@
7474
"disabled-text": "var(--color-text-primary)",
7575
"disabled-background": "#e5e5e5"
7676
},
77-
"chart-colors": [
78-
"#003f5c",
79-
"#aa3939",
80-
"#4caf50",
81-
"#ffa600"
82-
]
77+
"chart-colors": ["#003f5c", "#aa3939", "#4caf50", "#ffa600"]
8378
}

src/@batch-flask/ui/list-and-show-layout/entity-details-list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<ng-content select="[bl-list-buttons]"></ng-content>
2222
</div>
2323
</div>
24-
<div class="entity-details-list-content">
24+
<div class="entity-details-list-content" aria-live="polite">
2525
<ng-content></ng-content>
2626
</div>

src/@batch-flask/ui/property-list/link-property/link-property.component.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { ChangeDetectionStrategy, Component, Input } from "@angular/core";
1+
import { ChangeDetectionStrategy, Component, HostListener, Input } from "@angular/core";
2+
import { ENTER, SPACE } from "@batch-flask/core/keys";
23

34
@Component({
45
selector: "bl-link-property",
@@ -11,4 +12,12 @@ export class LinkPropertyComponent {
1112
@Input() public value: string;
1213

1314
@Input() public link: string;
15+
16+
@HostListener("keyup", ["$event"])
17+
keyPressed($event: KeyboardEvent) {
18+
$event.stopImmediatePropagation();
19+
if ($event.code === ENTER || $event.code === SPACE) {
20+
($event.target as HTMLElement).click();
21+
}
22+
}
1423
}

src/@batch-flask/ui/property-list/property-content/property-content.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import "./property-content.scss";
1010
export class PropertyContentComponent {
1111
@Input() @HostBinding("class.wrap") public wrap = false;
1212

13-
@HostBinding("attr.role") public readonly role = "textbox";
1413
@HostBinding("attr.aria-readonly") public readonly ariaReadonly = true;
1514
@HostBinding("attr.aria-labelledby") public ariaLablledby = null;
1615
@HostBinding("attr.aria-describedby") public ariaDescribedBy = null;

src/app/components/pool/action/add/os-picker/os-offer-tile/os-offer-tile.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<button
1616
class="select-version"
1717
[matMenuTriggerFor]="menu"
18+
name="button-version-select-{{prettyName}}"
1819
matTooltip="{{'os-offer-tile.select-version-button.tooltip' | i18n}}"
1920
title="{{'os-offer-tile.select-version-button.tooltip' | i18n}} ({{prettyName}})">
2021
<i class="fa fa-cog" aria-hidden="true"></i>

src/app/components/pool/graphs/pool-state-graph/pool-state-graph.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { Subscription } from "rxjs";
1616
import "./pool-state-graph.scss";
1717

1818
const idleColor = "#edeef2";
19-
const runningColor = "#388e3c";
19+
const runningColor = "#328000";
2020
const waitingForStartTaskColor = "#be93d9";
2121
const offlineColor = "#305796";
2222
const preemptedColor = "#606060";
@@ -133,8 +133,8 @@ export class PoolStateGraphComponent implements OnChanges, OnDestroy {
133133
return this._counts.get(this.pool.id);
134134
}
135135

136-
const dedicatedCounts: NodeCountsAttributes = {...emptyNodeCount};
137-
const lowPriorityCounts: NodeCountsAttributes = {...emptyNodeCount};
136+
const dedicatedCounts: NodeCountsAttributes = { ...emptyNodeCount };
137+
const lowPriorityCounts: NodeCountsAttributes = { ...emptyNodeCount };
138138

139139
for (const count of this._counts.values()) {
140140
this._addToSum(dedicatedCounts, count.dedicated);

0 commit comments

Comments
 (0)