Skip to content

Commit

Permalink
Remove whitespace from ids
Browse files Browse the repository at this point in the history
  • Loading branch information
jantoun-scottlogic committed Oct 3, 2024
1 parent eddf8ae commit ef084dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/tab/tab-item/tab-item.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
role="tabpanel"
aria-live="off"
[hidden]="!active()"
[id]="title() + '-tabpanel'"
[attr.aria-labelledby]="title() + '-tab'">
[id]="title().replaceAll(' ', '-') + '-tabpanel'"
[attr.aria-labelledby]="title().replaceAll(' ', '-') + '-tab'">
<ng-content></ng-content>
</div>
4 changes: 2 additions & 2 deletions src/app/tab/tabs/tabs.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<button
#tabButton
role="tab"
[id]="tab.title() + '-tab'"
[attr.aria-controls]="tab.title() + '-tabpanel'"
[id]="tab.title().replaceAll(' ', '-') + '-tab'"
[attr.aria-controls]="tab.title().replaceAll(' ', '-') + '-tabpanel'"
[class.tce-active-tab]="tab.active()"
[tabindex]="tab.active() ? 0 : -1"
[attr.aria-selected]="tab.active() ? true : false"
Expand Down

0 comments on commit ef084dc

Please sign in to comment.