-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accessibility: update accessbility for the main tabs
- Loading branch information
1 parent
66f1ddd
commit 831ecde
Showing
11 changed files
with
48 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 19 additions & 5 deletions
24
packages/survey-creator-angular/src/tabbed-menu/tabbed-menu/tabbed-menu-item.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,23 @@ | ||
<ng-template #template> | ||
<div [class]="model.getRootCss()" (click)="model.action()" [key2click]> | ||
<div | ||
[class]="model.getRootCss()" | ||
(click)="model.action()" | ||
[key2click] | ||
role="tab" | ||
[attr.id]="'tab-' + model.id" | ||
[attr.aria-selected]="model.active" | ||
[attr.aria-controls]="'scrollableDiv-' + model.id" | ||
> | ||
<span *ngIf="model.hasTitle" [class]="model.getTitleCss()"> | ||
{{model.title}} | ||
{{ model.title }} | ||
</span> | ||
<svg *ngIf="model.hasIcon" [iconName]="model.iconName" [size]="'auto'" [class]="model.getIconCss()" | ||
[title]="model.tooltip || model.title" sv-ng-svg-icon></svg> | ||
<svg | ||
*ngIf="model.hasIcon" | ||
[iconName]="model.iconName" | ||
[size]="'auto'" | ||
[class]="model.getIconCss()" | ||
[title]="model.tooltip || model.title" | ||
sv-ng-svg-icon | ||
></svg> | ||
</div> | ||
</ng-template> | ||
</ng-template> |
2 changes: 1 addition & 1 deletion
2
packages/survey-creator-angular/src/tabbed-menu/tabbed-menu/tabbed-menu.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
packages/survey-creator-knockout/src/tabbed-menu/tabbed-menu-item.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
<div class="svc-tabbed-menu-item" data-bind="click: action, key2click, css: getRootCss()"> | ||
<div | ||
class="svc-tabbed-menu-item" | ||
data-bind="click: action, key2click, css: getRootCss(), attr: {id: 'tab-' + id, 'aria-controls': 'scrollableDiv-' + id, 'aria-selected': active}" | ||
role="tab" | ||
> | ||
<!-- ko if: hasTitle --> | ||
<span data-bind="text: title, css: getTitleCss()"></span> | ||
<!-- /ko --> | ||
<!-- ko if: hasIcon --> | ||
<!-- ko component: { name: 'sv-svg-icon', params: { iconName: $data.iconName, size: "auto", css: getIconCss(), title: $data.tooltip || $data.title } } --> | ||
<!-- /ko --> | ||
<!-- /ko --> | ||
</div> | ||
</div> |
2 changes: 1 addition & 1 deletion
2
packages/survey-creator-knockout/src/tabbed-menu/tabbed-menu.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
packages/survey-creator-vue/src/tabbed-menu/TabbedMenuItem.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters