Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/pages/components/ImpactBadge.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: ImpactBadge
description: The ImpactBadge is an extension of the Badge component is designed to indicate the type of impact
description: The ImpactBadge is an extension of the Badge component that is designed to indicate the type of impact
source: https://github.com/dequelabs/cauldron/tree/develop/packages/react/src/components/ImpactBadge/index.tsx
storybook: true
---
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/components/TooltipTabstop.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: TooltipTabstop
description: A keyboard-accesible tooltip for non-interactive elements.
description: A keyboard-accessible tooltip for non-interactive elements.
source: https://github.com/dequelabs/cauldron/tree/develop/packages/react/src/components/TooltipTabstop/index.tsx
---

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ There are a few additional packages that you will need to install:

### Setup

Once installed, you will need to add include cauldron's styles somewhere in the top level of your application. You will also need to load the required font family of Roboto before cauldron styles. This can be using [google fonts](https://fonts.google.com/specimen/Roboto) or with something like [fontsource](https://fontsource.org/fonts/roboto):
Once installed, you will need to include cauldron's styles somewhere in the top level of your application. You will also need to load the required font family of Roboto before cauldron styles. This can be done using [google fonts](https://fonts.google.com/specimen/Roboto) or with something like [fontsource](https://fontsource.org/fonts/roboto):

An example of this using the [fontsource](https://fontsource.org/fonts/roboto) package and loading cauldron styles as follows:

Expand Down
2 changes: 1 addition & 1 deletion e2e/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pnpm screenshots --update-snapshots
```

> [!NOTE]
> Screenshot comparisons use a color threshhold of [0.2](https://playwright.dev/docs/api/class-pageassertions#page-assertions-to-have-screenshot-1-option-threshold) to help avoid unnecessary diffs from pixel anti-aliasing. If you need to generate a change to a component that has color changes only, you may want to first delete the previous snapshot before running the above command to get a clean component snapshot.
> Screenshot comparisons use a color threshold of [0.2](https://playwright.dev/docs/api/class-pageassertions#page-assertions-to-have-screenshot-1-option-threshold) to help avoid unnecessary diffs from pixel anti-aliasing. If you need to generate a change to a component that has color changes only, you may want to first delete the previous snapshot before running the above command to get a clean component snapshot.

Finally, to run screenshot comparison tests run:

Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Toast/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const typeMap: TypeMap = {

export const tabIndexHandler = (reset: boolean, toast: HTMLElement | null) => {
if (reset) {
// restore tab indicies that we clobbered
// restore tab indices that we clobbered
return queryAll('[data-cached-tabindex]').forEach((el: HTMLElement) => {
el.tabIndex = Number(el.getAttribute('data-cached-tabindex'));
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const TwoColumnPanel = forwardRef<HTMLDivElement, TwoColumnPanelProps>(
};
}, [columnLeftRef.current, isCollapsed]);

// When the collapsable panel starts to overlay content, it needs to become a focus trap and collapsed by default
// When the collapsible panel starts to overlay content, it needs to become a focus trap and collapsed by default
useLayoutEffect(() => {
const mediaQueryList = matchMedia(collapsedMediaQuery);
const handleMatch = (matches: boolean) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/utils/polymorphicComponent.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const htmlAnchorRef = React.createRef<HTMLAnchorElement>();

/*
* Note: The below components are statically typed and get validated with tsc
* to ensure we don't arbitrarily break polymoprhic components. Valid component
* to ensure we don't arbitrarily break polymorphic components. Valid component
* types should throw no errors, where @ts-expect-error is used to indicate
* an invalid or missing property.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/variables.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* variable naming convention:
* --{component name (if applicable)}-{style property}-{...modifiers (if applicable, hypen separated)}
* --{component name (if applicable)}-{style property}-{...modifiers (if applicable, hyphen separated)}
* example: --foo-background-color-light
*/

Expand Down
Loading