Skip to content

Commit 725d1a2

Browse files
committed
docs: fix typos throughout codebase
1 parent 6ba510b commit 725d1a2

File tree

95 files changed

+144
-141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+144
-141
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
packages/material-icons/src
2+
packages/documentation/public/tsdocs
23
packages/documentation/src/components/SassDocPage
34
packages/documentation/src/constants/meta
45
packages/documentation/src/constants/sandboxes

packages/app-bar/src/_mixins.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@
277277
/// }
278278
///
279279
/// .offset-by-dense-height {
280-
/// @include rmd-app-bar-ofset($height-type: dense-height);
280+
/// @include rmd-app-bar-offset($height-type: dense-height);
281281
/// }
282282
///
283283
/// @param {String} property [padding-top] - The property to apply the offset
@@ -287,19 +287,19 @@
287287
/// should be one of: `height`, `dense-height`, `prominent-height`,
288288
/// `prominent-dense-height`
289289
@mixin rmd-app-bar-offset($property: padding-top, $height-type: height) {
290-
$valid-propertys: (
290+
$valid-properties: (
291291
padding-top padding-bottom margin-top margin-bottom top bottom
292292
);
293293
$property: rmd-utils-validate(
294-
$valid-propertys,
294+
$valid-properties,
295295
$property,
296296
'app bar offset property'
297297
);
298298

299299
@include rmd-app-bar-theme($property, $height-type);
300300
}
301301

302-
/// Creates all the app bar offset classnames to use. This ties in with the
302+
/// Creates all the app bar offset class names to use. This ties in with the
303303
/// provided constants in javascript:
304304
///
305305
/// - APP_BAR_OFFSET_CLASSNAME

packages/autocomplete/src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function getResultId(id: string, index: number): string {
2424
*
2525
* @param datum - The current result datum to get a label for
2626
* @param labelKey - The key to extract a label from if the datum is an object
27-
* @param query - The current search query. This is useful if you want to
27+
* @param _query - The current search query. This is useful if you want to
2828
* implement text "highlighting" (bold) of all the letters that match in the
2929
* item.
3030
* @returns a renderable node to display
@@ -100,7 +100,7 @@ export function getFilterFunction<O extends {} = {}>(
100100
default:
101101
if (process.env.NODE_ENV !== "production") {
102102
throw new Error(
103-
`Invalid filter function: "${filter}". Supported values are: "fuzzy", "case-insenitive", "none", or a custom function.`
103+
`Invalid filter function: "${filter}". Supported values are: "fuzzy", "case-insensitive", "none", or a custom function.`
104104
);
105105
}
106106

packages/badge/src/Badge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const block = bem("rmd-badge");
3838
/**
3939
* This component is generally used for displaying notifications with a count
4040
* relative to another element with the `BadgeContainer` component. However, it
41-
* can be used by itself to display any subpplementary content if needed.
41+
* can be used by itself to display any supplementary content if needed.
4242
*/
4343
export const Badge = forwardRef<HTMLSpanElement, BadgeProps>(function Badge(
4444
{

packages/card/src/CardTitle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface CardTitleProps extends HTMLAttributes<HTMLHeadingElement> {
2121
const block = bem("rmd-card");
2222

2323
/**
24-
* The `Cardtitle` component should normally be used within the `CardHeader` to
24+
* The `CardTitle` component should normally be used within the `CardHeader` to
2525
* create a nicely styled `<h5>` title for your card. This can also be used
2626
* along with the `CardSubtitle` component within the `CardHeader` for a main
2727
* title and a subtitle.

packages/chip/src/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ $rmd-chip-outline-background-color: if(
235235
$rmd-chip-outline-dark-background-color
236236
) !default;
237237

238-
/// The tect color to use for "outlined" themed chips.
238+
/// The text color to use for "outlined" themed chips.
239239
///
240240
/// @require $rmd-theme-light
241241
/// @type Color

packages/documentation/src/components/AppBarTitle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { useId } from "./IdProvider";
1313
* if the title becomes truncated.
1414
*
1515
* This is pretty hacky right so it isn't part of the main lib yet, but a better
16-
* sultion to "auto tooltip" things might be added one day.
16+
* solution to "auto tooltip" things might be added one day.
1717
*/
1818
export default function AppBarTitle({
1919
id,

packages/documentation/src/components/ColorsAndTheming/ThemeBuilder/BackgroundWarnings.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ export default function BackgroundWarnings({
4747
return null;
4848
}
4949

50-
const isMultiplie = warnings.length > 1;
50+
const isMultiple = warnings.length > 1;
5151
const names = `**${warnings.join("** and **")}** value${
52-
isMultiplie ? "s" : ""
53-
} do${isMultiplie ? "" : "es"}`;
52+
isMultiple ? "s" : ""
53+
} do${isMultiple ? "" : "es"}`;
5454

5555
return (
5656
<Markdown disableSinglePMargin className={className}>

packages/documentation/src/components/DemoSandbox/CodePreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default function CodePreview({
7171
[styles.offset]: offset,
7272
})}
7373
lineNumbers
74-
// need to make this focusable so keyboard users can scoll
74+
// need to make this focusable so keyboard users can scroll
7575
// the page
7676
tabIndex={0}
7777
>

packages/documentation/src/components/Demos/Alert/UpdatingMessagePriority.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function UpdatingMessagePriority(): ReactElement {
5858
window.clearTimeout(timeout);
5959
};
6060

61-
// only want to run on running chagnes
61+
// only want to run on running changes
6262
// eslint-disable-next-line react-hooks/exhaustive-deps
6363
}, [running]);
6464

0 commit comments

Comments
 (0)