Skip to content

Commit

Permalink
chore: updated component aria-label warning reference links (#182)
Browse files Browse the repository at this point in the history
* chore: updated component aria label warning docs links

* chore: fix capitalization
  • Loading branch information
anuraghazra authored Dec 7, 2020
1 parent 4b34d8f commit ee55c21
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/breadcrumbs/Breadcrumbs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const Breadcrumbs = createComponent({
useWarning(
!props["aria-label"] && !props["aria-labelledby"],
"You should provide either `aria-label` or `aria-labelledby` props.",
"See https://www.w3.org/TR/wai-aria-practices-1.1/#wai-aria-roles-states-and-properties-2",
);
return useCreateElement(type, props, children);
},
Expand Down
1 change: 1 addition & 0 deletions src/number-input/NumberInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ export const NumberInput = createComponent({
useWarning(
!props["aria-label"] && !props["aria-labelledby"],
"You should provide either `aria-label` or `aria-labelledby` props.",
"See https://www.w3.org/TR/wai-aria-1.1/#spinbutton",
);
return useCreateElement(type, props, children);
},
Expand Down
1 change: 1 addition & 0 deletions src/progress/Progress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const Progress = createComponent({
useWarning(
!props["aria-label"] && !props["aria-labelledby"],
"You should provide either `aria-label` or `aria-labelledby` props.",
"See https://www.w3.org/TR/wai-aria-1.1/#progressbar",
);
return useCreateElement(type, props, children);
},
Expand Down
2 changes: 1 addition & 1 deletion src/select/SelectList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const SelectList = createComponent({
useWarning(
!props["aria-label"] && !props["aria-labelledby"],
"You should provide either `aria-label` or `aria-labelledby` props.",
"See https://reakit.io/docs/select",
"See https://www.w3.org/TR/wai-aria-1.1/#listbox",
);
return useCreateElement(type, props, children);
},
Expand Down
2 changes: 1 addition & 1 deletion src/select/SelectPopover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const SelectPopover = createComponent({
useWarning(
!props["aria-label"] && !props["aria-labelledby"],
"You should provide either `aria-label` or `aria-labelledby` props.",
"See https://reakit.io/docs/select",
"See https://www.w3.org/TR/wai-aria-1.1/#listbox",
);
return useCreateElement(type, props, children);
},
Expand Down

1 comment on commit ee55c21

@vercel
Copy link

@vercel vercel bot commented on ee55c21 Dec 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.