diff --git a/docs/.vitepress/components/Annoucement.vue b/docs/.vitepress/components/Announcement.vue similarity index 100% rename from docs/.vitepress/components/Annoucement.vue rename to docs/.vitepress/components/Announcement.vue diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index 9d815a437..d41051751 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -3,7 +3,7 @@ import { h } from 'vue' import DefaultTheme from 'vitepress/theme' import HomePage from '../components/HomePage.vue' import HomePageDemo from '../components/HomePageDemo.vue' -import Annoucement from '../components/Annoucement.vue' +import Announcement from '../components/Announcement.vue' import EmbedIframe from '../components/EmbedIframe.vue' import ComponentPreview from '../components/ComponentPreview.vue' import InstallationTabs from '../components/InstallationTabs.vue' @@ -21,7 +21,7 @@ export default { extends: DefaultTheme, Layout: () => { return h(DefaultTheme.Layout, null, { - 'home-hero-info-before': () => h(Annoucement), + 'home-hero-info-before': () => h(Announcement), // https://vitepress.dev/guide/extending-default-theme#layout-slots 'home-features-after': () => h('div', [h(HomePageDemo), h(HomePage)]), }) diff --git a/docs/content/components/select.md b/docs/content/components/select.md index c0052d43c..52a55dba2 100644 --- a/docs/content/components/select.md +++ b/docs/content/components/select.md @@ -226,13 +226,13 @@ Renders when the item is selected. You can style this element directly, or you c ### ScrollUpButton -An optional button used as an affordance to show the viewport overflow as well as functionaly enable scrolling upwards. +An optional button used as an affordance to show the viewport overflow as well as functionally enable scrolling upwards. ### ScrollDownButton -An optional button used as an affordance to show the viewport overflow as well as functionaly enable scrolling downwards. +An optional button used as an affordance to show the viewport overflow as well as functionally enable scrolling downwards. @@ -511,7 +511,7 @@ import { ### Controlling the value displayed in the trigger -By default the trigger will automatically display the selected item `ItemText`'s content. You can control what appears by chosing to put things inside/outside the `ItemText` part. +By default the trigger will automatically display the selected item `ItemText`'s content. You can control what appears by choosing to put things inside/outside the `ItemText` part. If you need more flexibility, you can control the component using `v-model` props and passing `slot` to `SelectValue`. Remember to make sure what you put in there is accessible. diff --git a/docs/content/meta/CalendarRoot.md b/docs/content/meta/CalendarRoot.md index 7e43086df..761d51a08 100644 --- a/docs/content/meta/CalendarRoot.md +++ b/docs/content/meta/CalendarRoot.md @@ -119,7 +119,7 @@ }, { 'name': 'placeholder', - 'description': '

The placeholder date, which is used to determine what month to display when no date is selected. This updates as the user navigates the calendar and can be used to programatically control the calendar view

\n', + 'description': '

The placeholder date, which is used to determine what month to display when no date is selected. This updates as the user navigates the calendar and can be used to programmatically control the calendar view

\n', 'type': 'DateValue', 'required': false }, diff --git a/docs/content/meta/DateFieldRoot.md b/docs/content/meta/DateFieldRoot.md index 2df5b9744..cf709d17f 100644 --- a/docs/content/meta/DateFieldRoot.md +++ b/docs/content/meta/DateFieldRoot.md @@ -102,7 +102,7 @@ }, { 'name': 'placeholder', - 'description': '

The placeholder date, which is used to determine what month to display when no date is selected. This updates as the user navigates the calendar and can be used to programatically control the calendar view

\n', + 'description': '

The placeholder date, which is used to determine what month to display when no date is selected. This updates as the user navigates the calendar and can be used to programmatically control the calendar view

\n', 'type': 'DateValue', 'required': false }, diff --git a/docs/content/meta/DatePickerRoot.md b/docs/content/meta/DatePickerRoot.md index 0f6c93109..5f2080970 100644 --- a/docs/content/meta/DatePickerRoot.md +++ b/docs/content/meta/DatePickerRoot.md @@ -149,7 +149,7 @@ }, { 'name': 'placeholder', - 'description': '

The placeholder date, which is used to determine what month to display when no date is selected. This updates as the user navigates the calendar and can be used to programatically control the calendar view

\n', + 'description': '

The placeholder date, which is used to determine what month to display when no date is selected. This updates as the user navigates the calendar and can be used to programmatically control the calendar view

\n', 'type': 'DateValue', 'required': false }, diff --git a/docs/content/meta/DateRangeFieldRoot.md b/docs/content/meta/DateRangeFieldRoot.md index 125f3b712..fb3f05fbf 100644 --- a/docs/content/meta/DateRangeFieldRoot.md +++ b/docs/content/meta/DateRangeFieldRoot.md @@ -102,7 +102,7 @@ }, { 'name': 'placeholder', - 'description': '

The placeholder date, which is used to determine what month to display when no date is selected. This updates as the user navigates the calendar and can be used to programatically control the calendar view

\n', + 'description': '

The placeholder date, which is used to determine what month to display when no date is selected. This updates as the user navigates the calendar and can be used to programmatically control the calendar view

\n', 'type': 'DateValue', 'required': false }, diff --git a/docs/content/meta/DateRangePickerRoot.md b/docs/content/meta/DateRangePickerRoot.md index 342aa6759..8edaf57fc 100644 --- a/docs/content/meta/DateRangePickerRoot.md +++ b/docs/content/meta/DateRangePickerRoot.md @@ -150,7 +150,7 @@ }, { 'name': 'placeholder', - 'description': '

The placeholder date, which is used to determine what month to display when no date is selected. This updates as the user navigates the calendar and can be used to programatically control the calendar view

\n', + 'description': '

The placeholder date, which is used to determine what month to display when no date is selected. This updates as the user navigates the calendar and can be used to programmatically control the calendar view

\n', 'type': 'DateValue', 'required': false }, diff --git a/docs/content/meta/ProgressRoot.md b/docs/content/meta/ProgressRoot.md index 8b3930a1e..141eb8565 100644 --- a/docs/content/meta/ProgressRoot.md +++ b/docs/content/meta/ProgressRoot.md @@ -44,7 +44,7 @@ }, { 'name': 'update:modelValue', - 'description': '

Event handler called when the progres value changes

\n', + 'description': '

Event handler called when the progress value changes

\n', 'type': '[value: string[]]' } ]" /> diff --git a/docs/content/meta/RangeCalendarRoot.md b/docs/content/meta/RangeCalendarRoot.md index 6ca6b573d..8c04d88fd 100644 --- a/docs/content/meta/RangeCalendarRoot.md +++ b/docs/content/meta/RangeCalendarRoot.md @@ -113,7 +113,7 @@ }, { 'name': 'placeholder', - 'description': '

The placeholder date, which is used to determine what month to display when no date is selected. This updates as the user navigates the calendar and can be used to programatically control the calendar view

\n', + 'description': '

The placeholder date, which is used to determine what month to display when no date is selected. This updates as the user navigates the calendar and can be used to programmatically control the calendar view

\n', 'type': 'DateValue', 'required': false }, diff --git a/docs/content/meta/TabsRoot.md b/docs/content/meta/TabsRoot.md index 37478e761..0e45cf912 100644 --- a/docs/content/meta/TabsRoot.md +++ b/docs/content/meta/TabsRoot.md @@ -41,7 +41,7 @@ }, { 'name': 'orientation', - 'description': '

The orientation the tabs are layed out.\nMainly so arrow navigation is done accordingly (left & right vs. up & down)

\n', + 'description': '

The orientation the tabs are laid out.\nMainly so arrow navigation is done accordingly (left & right vs. up & down)

\n', 'type': '\'vertical\' | \'horizontal\'', 'required': false, 'default': '\'horizontal\'' diff --git a/docs/content/overview/accessibility.md b/docs/content/overview/accessibility.md index 5ce8b6903..8ecffaf16 100644 --- a/docs/content/overview/accessibility.md +++ b/docs/content/overview/accessibility.md @@ -23,7 +23,7 @@ In addition to semantics, there are behaviors that are expected from different t ## Accessible Labels -With many built-in form controls, the native HTML `label` element is designed to provide semantic meaning and context for corresponding `input` elements. For non-form control elements, or for custom controls like those provided by Radix Primitives, [WAI-ARIA provides a specification](https://www.w3.org/TR/wai-aria-1.2/#namecalculation) for how to provide accessible names and descriptions to those contols. +With many built-in form controls, the native HTML `label` element is designed to provide semantic meaning and context for corresponding `input` elements. For non-form control elements, or for custom controls like those provided by Radix Primitives, [WAI-ARIA provides a specification](https://www.w3.org/TR/wai-aria-1.2/#namecalculation) for how to provide accessible names and descriptions to those controls. Where possible, Radix Primitives include abstractions to make labelling our controls simple. The [`Label`](../components/label) primitive is designed to work with many of our controls. Ultimately it's up to you to provide those labels so that users have the proper context when navigating your application. @@ -35,7 +35,7 @@ Many complex components, like [`Tabs`](../components/tabs) and [`Dialog`](../com Proper keyboard navigation and good labelling often go hand-in-hand with managing focus. When a user interacts with an element and something changes as a result, it's often helpful to move focus with the interaction so that the next tab stop is logical depending on the new context of the app. And for screen reader users, moving focus often results in an announcement to convey this new context, which relies on proper labelling. -In many Radix Primitives, we move focus based on the interactions a user normally takes in a given component. For example, in [`AlertDialog`](../components/alert-dialog), when the modal is opened, focus is programatically moved to a `Cancel` button element to anticipate a response to the prompt. +In many Radix Primitives, we move focus based on the interactions a user normally takes in a given component. For example, in [`AlertDialog`](../components/alert-dialog), when the modal is opened, focus is programmatically moved to a `Cancel` button element to anticipate a response to the prompt. ::: info Source: [Radix UI](https://www.radix-ui.com/) diff --git a/docs/content/utilities/slot.md b/docs/content/utilities/slot.md index 64dbc4eae..6f15cb228 100644 --- a/docs/content/utilities/slot.md +++ b/docs/content/utilities/slot.md @@ -45,7 +45,7 @@ Say we want to assign an `id` attribute to whatever component/element that was r