Skip to content

Commit

Permalink
Add aria-labels to radio-group and number-input
Browse files Browse the repository at this point in the history
  • Loading branch information
Donisius committed Dec 19, 2019
1 parent 2a3ca0d commit f6d7388
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/number-input/number.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export class NumberChange {
type="button"
aria-live="polite"
aria-atomic="true"
aria-label="increment button"
(click)="onIncrement()">
<ibm-icon-caret-up16></ibm-icon-caret-up16>
</button>
Expand All @@ -78,6 +79,7 @@ export class NumberChange {
type="button"
aria-live="polite"
aria-atomic="true"
aria-label="decrement button"
(click)="onDecrement()">
<ibm-icon-caret-down16></ibm-icon-caret-down16>
</button>
Expand Down
1 change: 1 addition & 0 deletions src/radio/radio-group.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import { RadioChange } from "./radio-change.class";
template: `
<div
class="bx--radio-button-group"
aria-label="radiogroup"
[ngClass]="{
'bx--radio-button-group--vertical': orientation === 'vertical',
'bx--radio-button-group--label-left': orientation === 'vertical' && labelPlacement === 'left'
Expand Down

0 comments on commit f6d7388

Please sign in to comment.