Skip to content

Commit 912c2e8

Browse files
shuvroroyRobinMalfait
authored andcommitted
Fixed typos (#350)
1 parent cd679e8 commit 912c2e8

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

packages/@headlessui-react/src/components/description/description.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ it('should be possible to use a DescriptionProvider and a single Description, an
6464
`)
6565
})
6666

67-
it('should be possible to use a DescriptionProvider and multiple Description ocmponents, and have them linked', async () => {
67+
it('should be possible to use a DescriptionProvider and multiple Description components, and have them linked', async () => {
6868
function Component(props: { children: ReactNode }) {
6969
let [describedby, DescriptionProvider] = useDescriptions()
7070

packages/@headlessui-react/src/components/focus-trap/focus-trap.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ it(
9898

9999
let [a, b, c, d] = Array.from(document.querySelectorAll('input'))
100100

101-
// Ensure that input-b is the active elememt
101+
// Ensure that input-b is the active element
102102
assertActiveElement(b)
103103

104104
// Tab to the next item
105105
await press(Keys.Tab)
106106

107-
// Ensure that input-c is the active elememt
107+
// Ensure that input-c is the active element
108108
assertActiveElement(c)
109109

110110
// Try to move focus

packages/@headlessui-react/src/components/label/label.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ it('should be possible to use a LabelProvider and a single Label, and have them
6464
`)
6565
})
6666

67-
it('should be possible to use a LabelProvider and multiple Label ocmponents, and have them linked', async () => {
67+
it('should be possible to use a LabelProvider and multiple Label components, and have them linked', async () => {
6868
function Component(props: { children: ReactNode }) {
6969
let [labelledby, LabelProvider] = useLabels()
7070

packages/@headlessui-react/src/components/transitions/transition.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ function TransitionChild<TTag extends ElementType = typeof DEFAULT_TRANSITION_CH
219219

220220
let nesting = useNesting(() => {
221221
// When all children have been unmounted we can only hide ourselves if and only if we are not
222-
// transitioning ourserlves. Otherwise we would unmount before the transitions are finished.
222+
// transitioning ourselves. Otherwise we would unmount before the transitions are finished.
223223
if (!isTransitioning.current) {
224224
setState(TreeStates.Hidden)
225225
unregister(id)

packages/@headlessui-react/src/components/transitions/utils/transition.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ it('should be possible to transition', async () => {
3939
expect(snapshots[1].content).toEqual('<div class="enter enterFrom"></div>')
4040

4141
// NOTE: There is no `enter enterTo`, because we didn't define a duration. Therefore it is not
42-
// necessary to put the classes on the element and immediatley remove them.
42+
// necessary to put the classes on the element and immediately remove them.
4343

4444
// Cleanup phase
4545
expect(snapshots[2].content).toEqual('<div class=""></div>')

packages/@headlessui-react/src/components/transitions/utils/transition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function waitForTransition(node: HTMLElement, done: (reason: Reason) => void) {
2525
let [durationMs, delaysMs] = [transitionDuration, transitionDelay].map(value => {
2626
let [resolvedValue = 0] = value
2727
.split(',')
28-
// Remove falseys we can't work with
28+
// Remove falsy we can't work with
2929
.filter(Boolean)
3030
// Values are returned as `0.3s` or `75ms`
3131
.map(v => (v.includes('ms') ? parseFloat(v) : parseFloat(v) * 1000))

packages/@headlessui-vue/src/components/focus-trap/focus-trap.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ it(
153153

154154
let [a, b, c, d] = Array.from(document.querySelectorAll('input'))
155155

156-
// Ensure that input-b is the active elememt
156+
// Ensure that input-b is the active element
157157
assertActiveElement(b)
158158

159159
// Tab to the next item
160160
await press(Keys.Tab)
161161

162-
// Ensure that input-c is the active elememt
162+
// Ensure that input-c is the active element
163163
assertActiveElement(c)
164164

165165
// Try to move focus

packages/@headlessui-vue/src/components/transitions/transition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export let TransitionChild = defineComponent({
179179

180180
let nesting = useNesting(() => {
181181
// When all children have been unmounted we can only hide ourselves if and only if we are not
182-
// transitioning ourserlves. Otherwise we would unmount before the transitions are finished.
182+
// transitioning ourselves. Otherwise we would unmount before the transitions are finished.
183183
if (!isTransitioning.value) {
184184
state.value = TreeStates.Hidden
185185
unregister(id)

packages/@headlessui-vue/src/components/transitions/utils/transition.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ it('should be possible to transition', async () => {
3939
expect(snapshots[1].content).toEqual('<div class="enter enterFrom"></div>')
4040

4141
// NOTE: There is no `enter enterTo`, because we didn't define a duration. Therefore it is not
42-
// necessary to put the classes on the element and immediatley remove them.
42+
// necessary to put the classes on the element and immediately remove them.
4343

4444
// Cleanup phase
4545
expect(snapshots[2].content).toEqual('<div class=""></div>')

0 commit comments

Comments
 (0)