This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 65
added labels and ids to section form tabs #1798
Merged
Blackbaud-AlexKingman
merged 21 commits into
master
from
fix-sectioned-form-tabs-missing-labels
Sep 7, 2018
+304
−69
Merged
Changes from 2 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
3622b9c
added labels and ids to section form tabs
blackbaud-conorwright 59d72df
Merge branch 'master' into fix-sectioned-form-tabs-missing-labels
blackbaud-conorwright dd22c39
Merge remote-tracking branch 'upstream/master' into fix-sectioned-for…
blackbaud-conorwright 645766d
moved aria inputs to vertical tab and set its role to tab
blackbaud-conorwright 1c7246a
Merge branch 'master' into fix-sectioned-form-tabs-missing-labels
blackbaud-conorwright 04d417e
Merge branch 'master' into fix-sectioned-form-tabs-missing-labels
blackbaud-conorwright 0f84aa0
fixed id to not populate when undefined. added tablist role
blackbaud-conorwright deec877
hiding tab and content instead of erasing
blackbaud-conorwright 450e70c
Merge remote-tracking branch 'upstream/master' into fix-sectioned-for…
blackbaud-conorwright 7f75fc6
added testing and switched to using getters
blackbaud-conorwright 0c22f10
removed reversed condition
blackbaud-conorwright 79b1507
Merge branch 'master' into fix-sectioned-form-tabs-missing-labels
blackbaud-conorwright 90c6e0d
fixed coverage misses
blackbaud-conorwright 5ef28b3
Merge branch 'master' into fix-sectioned-form-tabs-missing-labels
blackbaud-conorwright 4cfd4cf
Merge branch 'master' into fix-sectioned-form-tabs-missing-labels
Blackbaud-SteveBrush acd4369
Merge branch 'master' into fix-sectioned-form-tabs-missing-labels
blackbaud-conorwright b3cfc15
removed use of forEach
blackbaud-conorwright 3a0dded
removed leftover forEach
blackbaud-conorwright 16d53a6
Merge remote-tracking branch 'origin' into fix-sectioned-form-tabs-mi…
blackbaud-conorwright a0da74e
Merge branch 'master' into fix-sectioned-form-tabs-missing-labels
Blackbaud-TrevorBurch c81f6ca
Merge branch 'master' into fix-sectioned-form-tabs-missing-labels
Blackbaud-TrevorBurch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
20 changes: 14 additions & 6 deletions
20
src/modules/sectioned-form/sectioned-form-section.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,14 +1,22 @@ | ||
<sky-vertical-tab | ||
<sky-vertical-tab | ||
role="tab" | ||
[active]="active" | ||
[attr.aria-selected]="active" | ||
[attr.aria-controls]="sectionContentId" | ||
[id]="sectionTabId" | ||
[ngClass]="{ | ||
'sky-tab-field-required': fieldRequired, | ||
'sky-tab-field-invalid': fieldInvalid | ||
}" | ||
[tabHeading]="heading" | ||
[tabHeaderCount]="itemCount" | ||
[active]="active" | ||
[showTabRightArrow]="true" | ||
[tabHeading]="heading" | ||
[tabHeaderCount]="itemCount" | ||
> | ||
<div #tabContent> | ||
<div | ||
role="tabpanel" | ||
[attr.aria-labelledby]="sectionTabId" | ||
[id]="sectionContentId" | ||
#tabContent> | ||
<ng-content></ng-content> | ||
</div> | ||
</sky-vertical-tab> | ||
</sky-vertical-tab> |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we rethink how we're adding these attributes? In the sectioned form template, this works, but what if a consumer implements the vertical tab by itself? I'm assuming we'd want the same roles, etc. applied automatically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure. I definitely see role="tab" being there, but then we would probably want them to set their own controls. Hmm, I'll switch these to being on the content of a verticaly tab and take them as input on it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Blackbaud-SteveBrush I've moved the attributes to be inputs on the vertical tab, including ID. Let me know what you think when you get the chance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, hold off. This is failing for a lying accessibility issue 😕
I'm currently trying to fix it