Skip to content

Commit

Permalink
Add more accessible names to the console
Browse files Browse the repository at this point in the history
  • Loading branch information
ptkach committed Jan 28, 2025
1 parent 2ceb52a commit 61359cb
Show file tree
Hide file tree
Showing 17 changed files with 55 additions and 21 deletions.
8 changes: 6 additions & 2 deletions console-webapp/src/app/billingInfo/billingInfo.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ <h1 class="mat-headline-4">Billing Info</h1>
<div class="console-app__billing-subhead">
Billing records and information
</div>
<a class="text-l" href="{{ driveFolderUrl() }}" target="_blank"
<a
class="text-l"
href="{{ driveFolderUrl() }}"
target="_blank"
aria-label="View billing records on Google Drive"
>View on Google Drive</a
>
</div>
<div>
<img src="./assets/billing.png" />
<img src="./assets/billing.png" alt="Generic billing image" />
</div>
</div>
</app-selected-registrar-wrapper>
6 changes: 5 additions & 1 deletion console-webapp/src/app/domains/domainList.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ <h1>No domains found</h1>
} @else {
<mat-menu #actions="matMenu">
<ng-template matMenuContent let-domainName="domainName">
<button mat-menu-item (click)="openRegistryLock(domainName)">
<button
mat-menu-item
(click)="openRegistryLock(domainName)"
aria-label="Access registry lock for domain"
>
<mat-icon>key</mat-icon>
<span>Registry Lock</span>
</button>
Expand Down
2 changes: 2 additions & 0 deletions console-webapp/src/app/domains/registryLock.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ <h1>Unlock the domain {{ domainListService.selectedDomain }}</h1>
color="primary"
type="submit"
[disabled]="!unlockDomain.valid"
aria-label="Submit domain unlock request"
>
Save
</button>
Expand All @@ -73,6 +74,7 @@ <h1>Lock the domain {{ domainListService.selectedDomain }}</h1>
color="primary"
type="submit"
[disabled]="!lockDomain.valid"
aria-label="Submit domain lock request"
>
Save
</button>
Expand Down
2 changes: 1 addition & 1 deletion console-webapp/src/app/header/header.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<mat-toolbar>
<button
mat-icon-button
aria-label="Open menu"
aria-label="Open navigation menu"
(click)="toggleNavPane()"
*ngIf="breakpointObserver.isMobileView()"
class="console-app__menu-btn"
Expand Down
9 changes: 8 additions & 1 deletion console-webapp/src/app/ote/newOte.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@ <h1>Generated Successfully</h1>
>
</mat-form-field>
</p>
<button mat-flat-button color="primary" type="submit">Save</button>
<button
mat-flat-button
color="primary"
type="submit"
aria-label="Submit new OT&E account"
>
Save
</button>
</form>
}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ <h2>Contact Info</h2>
mat-flat-button
color="primary"
type="submit"
aria-label="Submit new registrar request"
>
Save
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h1 class="mat-headline-4">Registrars</h1>
*ngIf="oteButtonVisible"
mat-stroked-button
(click)="checkOteStatus()"
aria-label="Check OT&E account"
aria-label="Check OT&E account status"
[elementId]="getElementIdForOteBlock()"
>
Check OT&E Status
Expand Down
2 changes: 1 addition & 1 deletion console-webapp/src/app/resources/resources.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ <h1 class="mat-headline-4">Resources</h1>
>
</div>
<div>
<img src="./assets/resources.png" />
<img src="./assets/resources.png" alt="Generic resources image" />
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ <h1>WHOIS Preferences</h1>
mat-flat-button
color="primary"
type="submit"
aria-label="Save contact updates"
>
Save
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h1>IP Allowlist</h1>
<button
matSuffix
mat-icon-button
aria-label="Remove"
[attr.aria-label]="'Remove IP entry ' + ip.value"
(click)="removeIpEntry(ip)"
[disabled]="isUpdating"
>
Expand All @@ -36,6 +36,7 @@ <h1>IP Allowlist</h1>
[disabled]="isUpdating"
color="primary"
(click)="createIpEntry()"
aria-label="Add new IP address"
type="button"
>
+ Add IP
Expand Down
3 changes: 3 additions & 0 deletions console-webapp/src/app/settings/settings.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ <h1 class="mat-headline-4">Settings</h1>
queryParamsHandling="merge"
#rla="routerLinkActive"
[active]="rla.isActive"
aria-label="Access contacts settings"
>Contacts</a
>
<a
Expand All @@ -23,6 +24,7 @@ <h1 class="mat-headline-4">Settings</h1>
queryParamsHandling="merge"
#rla2="routerLinkActive"
[active]="rla2.isActive"
aria-label="Access whois settings"
>WHOIS Info</a
>
<a
Expand All @@ -32,6 +34,7 @@ <h1 class="mat-headline-4">Settings</h1>
queryParamsHandling="merge"
#rla3="routerLinkActive"
[active]="rla3.isActive"
aria-label="Access security settings"
>Security</a
>
</nav>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,14 @@ <h1>Technical info</h1>
</mat-form-field>
}

<button mat-flat-button color="primary" type="submit">Save</button>
<button
mat-flat-button
color="primary"
type="submit"
aria-label="Save WHOIS settings"
>
Save
</button>
</form>
</div>
</div>
6 changes: 5 additions & 1 deletion console-webapp/src/app/support/support.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ <h1>Email</h1>
For help with OT&E sandbox and certification, or new technical requirements
for any of our new TLD launches.
</p>
<a class="text-l" href="mailto:registry-integration@google.com"
<a
class="text-l"
href="mailto:registry-integration@google.com"
aria-label="Email us with OT&E sandbox/certification or new TLD technical requirements questions."
>registry-integration&#64;google.com</a
>
<p class="text-l">
Expand All @@ -19,6 +22,7 @@ <h1>Email</h1>
</p>
<a
class="text-l"
aria-label="Email support with general purpose questions."
href="mailto:{{ userDataService.userData()?.supportEmail }}"
>{{ userDataService.userData()?.supportEmail }}</a
>
Expand Down
5 changes: 3 additions & 2 deletions console-webapp/src/app/users/userDetails.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,12 @@ <h2>User details</h2>
<input
[type]="isPasswordVisible ? 'text' : 'password'"
[value]="userDetails().password"
disabled
aria-label="Password field"
readonly
/>
<button
mat-button
aria-label="Show password"
aria-hidden="true"
(click)="isPasswordVisible = !isPasswordVisible"
>
{{ isPasswordVisible ? "Hide" : "View" }} password
Expand Down
8 changes: 7 additions & 1 deletion console-webapp/src/app/users/userEditForm.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@
</mat-select>
</mat-form-field>
</p>
<button mat-flat-button color="primary" aria-label="Save user" type="submit">
<button
mat-flat-button
color="primary"
aria-label="Save user"
type="submit"
aria-label="Save changes to the user"
>
Save
</button>
</form>
7 changes: 1 addition & 6 deletions console-webapp/src/app/users/users.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,7 @@ <h1 class="mat-headline-4">Users</h1>
<mat-icon>add</mat-icon>
Add existing user
</button>
<button
mat-flat-button
(click)="isNew = true"
aria-label="Create new user"
color="primary"
>
<button mat-flat-button (click)="isNew = true" color="primary">
Create New User
</button>
</div>
Expand Down
2 changes: 0 additions & 2 deletions console-webapp/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,11 @@ body {
font-weight: bold;
width: var(--list-item-title-width);
display: inline-block;
font-size: 14px;
white-space: pre-line;
color: #202124;
flex-shrink: 0;
}
.console-app__list-value {
font-size: 14px;
white-space: pre-line;
word-break: break-word;
color: var(--text);
Expand Down

0 comments on commit 61359cb

Please sign in to comment.