-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(number-stepper): add inputs for aria-labels (#49)
* feat(number-stepper): add aria-label inputs * fix(number-stepper): tests for aria inputs and aria for text field * feat(number-stepper): add input for input aria label + tests * fix: linting * fix: add missing docs sentence * Update projects/ng-aquila/documentation/examples/number-stepper-localize/number-stepper-localize-example.html * Update projects/ng-aquila/src/number-stepper/number-stepper.md Co-Authored-By: Silvia Milde <[email protected]> * Update projects/ng-aquila/src/number-stepper/number-stepper.component.spec.ts Co-Authored-By: Silvia Milde <[email protected]> * Update projects/ng-aquila/src/number-stepper/number-stepper.component.ts Co-Authored-By: Silvia Milde <[email protected]> * Update projects/ng-aquila/src/number-stepper/number-stepper.component.ts Co-Authored-By: Silvia Milde <[email protected]> * Update projects/ng-aquila/src/number-stepper/number-stepper.component.ts Co-Authored-By: Silvia Milde <[email protected]> * Update projects/ng-aquila/src/number-stepper/number-stepper.component.ts Co-Authored-By: Silvia Milde <[email protected]> * fix: linter * fix(number-stepper): add a11y example * fix: forgot to add files Co-authored-by: Silvia Milde <[email protected]>
- Loading branch information
1 parent
4feb209
commit 90adcc7
Showing
8 changed files
with
139 additions
and
37 deletions.
There are no files selected for viewing
Empty file.
7 changes: 7 additions & 0 deletions
7
...cts/ng-aquila/documentation/examples/number-stepper-a11y/number-stepper-a11y-example.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<nx-number-stepper | ||
inputAriaLabel="Number of travellers" | ||
incrementAriaLabel="Increase number of travellers" | ||
decrementAriaLabel="Decrease number of travellers" | ||
> | ||
<label>Number of travellers</label> | ||
</nx-number-stepper> |
9 changes: 9 additions & 0 deletions
9
projects/ng-aquila/documentation/examples/number-stepper-a11y/number-stepper-a11y-example.ts
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
/** | ||
* @title Number Stepper Accessiblity Example | ||
*/ | ||
@Component({ | ||
templateUrl: './number-stepper-a11y-example.html' | ||
}) | ||
export class NumberStepperAccessibilityExampleComponent {} |
2 changes: 1 addition & 1 deletion
2
...quila/documentation/examples/number-stepper-localize/number-stepper-localize-example.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 +1 @@ | ||
<nx-number-stepper></nx-number-stepper> | ||
<nx-number-stepper></nx-number-stepper> |
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
Oops, something went wrong.