Skip to content

Commit

Permalink
docs: add accessibility docs for progress-bar (epicmaxco#3692)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongmao86 authored Aug 16, 2023
1 parent b0fbada commit a5d1046
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/docs/page-config/ui-elements/progress-bar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ export default definePageConfig({
description: "You can set maximum value for progress bar component"
}),

block.subtitle("Accessibility"),
block.paragraph("The [role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles)[[target=_blank]] of the component is [progressbar](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/progressbar_role)[[target=_blank]], the [aria-label](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label)[[target=_blank]] of the component is `progress-state`, if the value of the component is not indeterminate, [aria-valuenow](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-valuenow)[[target=_blank]] is set to the `modelValue` prop."),

block.subtitle("API"),
block.api("VaProgressBar", {
props: {
Expand Down

0 comments on commit a5d1046

Please sign in to comment.