1 charachters in query
+ // More > 1 characters in query
// If active element satisfies the query stay there,
if (activeElement.textContent?.toLowerCase().startsWith(query)) return
// otherwise move to the next one that does.
diff --git a/src/stories/useAnchoredPosition.stories.tsx b/src/stories/useAnchoredPosition.stories.tsx
index 234ec8dbeb4..093bf801efa 100644
--- a/src/stories/useAnchoredPosition.stories.tsx
+++ b/src/stories/useAnchoredPosition.stories.tsx
@@ -48,7 +48,7 @@ export default {
description: 'note'
},
anchorAlignment: {
- control: {type: 'inline-radio', options: ['first', 'center', 'last']}
+ control: {type: 'inline-radio', options: ['start', 'center', 'end']}
},
anchorOffset: {
control: {type: 'range', min: -100, max: 100}
@@ -300,7 +300,7 @@ export const WithPortal = () => {
This “nav bar” has a width of 300px and is position:relative
with{' '}
overflow:hidden
, meaning that its children cannot overflow this container. Using <Portal>
- with useAnchoredPosition
, we can break out of this contraint.
+ with useAnchoredPosition
, we can break out of this constraint.
}>
diff --git a/src/theme-preval.js b/src/theme-preval.js
index d7e959ee9ef..12632717ea0 100644
--- a/src/theme-preval.js
+++ b/src/theme-preval.js
@@ -1,5 +1,5 @@
// @preval
-// This file needs to be a JavaScript file using CommonJS to be compatiable with preval
+// This file needs to be a JavaScript file using CommonJS to be compatible with preval
// Cache bust: 2021-11-04 12:00:00 GMT (This file is cached by our deployment tooling, update this timestamp to rebuild this file)
const {default: primitives} = require('@primer/primitives')
diff --git a/src/utils/theme.js b/src/utils/theme.js
index 4b6a54afe92..51f285beb4e 100644
--- a/src/utils/theme.js
+++ b/src/utils/theme.js
@@ -1,5 +1,5 @@
// Utility functions used in theme-preval.js
-// This file needs to be a JavaScript file using CommonJS to be compatiable with preval
+// This file needs to be a JavaScript file using CommonJS to be compatible with preval
const isEmpty = require('lodash.isempty')
const isObject = require('lodash.isobject')
diff --git a/src/utils/types/Flatten.ts b/src/utils/types/Flatten.ts
index 4e715248a73..486bcde3eba 100644
--- a/src/utils/types/Flatten.ts
+++ b/src/utils/types/Flatten.ts
@@ -1,4 +1,4 @@
/**
- * Contruct a type describing the items in `T`, if `T` is an array.
+ * Construct a type describing the items in `T`, if `T` is an array.
*/
export type Flatten = T extends (infer U)[] ? U : never