Skip to content

Commit

Permalink
fix: pin @headlessui/react to 1.7.5
Browse files Browse the repository at this point in the history
Resolves e2e test failures in Traject (see https://github.com/FB-PLP/traject/pull/13040).

Issue starts in 1.7.6, possibly from tailwindlabs/headlessui#2093.
  • Loading branch information
ahuth committed Jan 5, 2023
1 parent a0d6143 commit 9539229
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"react": ">= 16.8.0"
},
"dependencies": {
"@headlessui/react": "^1.7.7",
"@headlessui/react": "1.7.5",
"@popperjs/core": "^2.11.6",
"@tippyjs/react": "^4.2.6",
"clsx": "^1.2.1",
Expand Down
20 changes: 10 additions & 10 deletions src/components/Dropdown/__snapshots__/Dropdown.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ exports[`<Dropdown /> Compact story renders snapshot 1`] = `
<button
aria-controls="headlessui-listbox-options-15"
aria-expanded="true"
aria-haspopup="listbox"
aria-haspopup="true"
aria-labelledby="headlessui-listbox-label-13 headlessui-listbox-button-14"
class="dropdown-button dropdown-button--compact"
data-headlessui-state="open"
Expand Down Expand Up @@ -112,7 +112,7 @@ exports[`<Dropdown /> CompactUsingChildrenPropAndNoVisibleLabel story renders sn
<button
aria-controls="headlessui-listbox-options-45"
aria-expanded="true"
aria-haspopup="listbox"
aria-haspopup="true"
aria-labelledby="headlessui-listbox-label-43 headlessui-listbox-button-44"
class="dropdown-button dropdown-button--compact"
data-headlessui-state="open"
Expand Down Expand Up @@ -208,7 +208,7 @@ exports[`<Dropdown /> CompactWithOptionsRightAligned story renders snapshot 1`]
<button
aria-controls="headlessui-listbox-options-21"
aria-expanded="true"
aria-haspopup="listbox"
aria-haspopup="true"
aria-labelledby="headlessui-listbox-label-19 headlessui-listbox-button-20"
class="dropdown-button dropdown-button--compact"
data-headlessui-state="open"
Expand Down Expand Up @@ -304,7 +304,7 @@ exports[`<Dropdown /> Default story renders snapshot 1`] = `
<button
aria-controls="headlessui-listbox-options-3"
aria-expanded="true"
aria-haspopup="listbox"
aria-haspopup="true"
aria-labelledby="headlessui-listbox-label-1 headlessui-listbox-button-2"
class="dropdown-button"
data-headlessui-state="open"
Expand Down Expand Up @@ -400,7 +400,7 @@ exports[`<Dropdown /> DefaultWithoutVisibleLabel story renders snapshot 1`] = `
<button
aria-controls="headlessui-listbox-options-9"
aria-expanded="true"
aria-haspopup="listbox"
aria-haspopup="true"
aria-labelledby="headlessui-listbox-label-7 headlessui-listbox-button-8"
class="dropdown-button"
data-headlessui-state="open"
Expand Down Expand Up @@ -496,7 +496,7 @@ exports[`<Dropdown /> SeparateButtonAndMenuWidth story renders snapshot 1`] = `
<button
aria-controls="headlessui-listbox-options-27"
aria-expanded="true"
aria-haspopup="listbox"
aria-haspopup="true"
aria-labelledby="headlessui-listbox-label-25 headlessui-listbox-button-26"
class="dropdown-button"
data-headlessui-state="open"
Expand Down Expand Up @@ -592,7 +592,7 @@ exports[`<Dropdown /> UsingChildrenProp story renders snapshot 1`] = `
<button
aria-controls="headlessui-listbox-options-33"
aria-expanded="true"
aria-haspopup="listbox"
aria-haspopup="true"
aria-labelledby="headlessui-listbox-label-31 headlessui-listbox-button-32"
class="dropdown-button"
data-headlessui-state="open"
Expand Down Expand Up @@ -688,7 +688,7 @@ exports[`<Dropdown /> UsingChildrenPropAndNoVisibleLabel story renders snapshot
<button
aria-controls="headlessui-listbox-options-39"
aria-expanded="true"
aria-haspopup="listbox"
aria-haspopup="true"
aria-labelledby="headlessui-listbox-label-37 headlessui-listbox-button-38"
class="dropdown-button"
data-headlessui-state="open"
Expand Down Expand Up @@ -778,7 +778,7 @@ exports[`<Dropdown /> UsingFunctionChildrenProp story renders snapshot 1`] = `
<button
aria-controls="headlessui-listbox-options-50"
aria-expanded="true"
aria-haspopup="listbox"
aria-haspopup="true"
class="function-children__button"
data-headlessui-state="open"
id="headlessui-listbox-button-49"
Expand Down Expand Up @@ -868,7 +868,7 @@ exports[`<Dropdown /> renders the OpenByDefault story 1`] = `
<button
aria-controls="headlessui-listbox-options-56"
aria-expanded="true"
aria-haspopup="listbox"
aria-haspopup="true"
aria-labelledby="headlessui-listbox-label-54 headlessui-listbox-button-55"
class="dropdown-button"
data-headlessui-state="open"
Expand Down
6 changes: 3 additions & 3 deletions src/components/Menu/__snapshots__/Menu.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`<Menu /> Default story renders snapshot 1`] = `
<button
aria-controls="headlessui-menu-items-2"
aria-expanded="true"
aria-haspopup="menu"
aria-haspopup="true"
class="clickable-style clickable-style--lg clickable-style--secondary clickable-style--neutral menu__button"
data-bootstrap-override="clickable-style-secondary"
data-headlessui-state="open"
Expand Down Expand Up @@ -159,7 +159,7 @@ exports[`<Menu /> WithLongButtonText story renders snapshot 1`] = `
<button
aria-controls="headlessui-menu-items-8"
aria-expanded="true"
aria-haspopup="menu"
aria-haspopup="true"
class="clickable-style clickable-style--lg clickable-style--secondary clickable-style--neutral menu__button"
data-bootstrap-override="clickable-style-secondary"
data-headlessui-state="open"
Expand Down Expand Up @@ -310,7 +310,7 @@ exports[`<Menu /> WithShortButtonText story renders snapshot 1`] = `
<button
aria-controls="headlessui-menu-items-14"
aria-expanded="true"
aria-haspopup="menu"
aria-haspopup="true"
class="clickable-style clickable-style--lg clickable-style--secondary clickable-style--neutral menu__button"
data-bootstrap-override="clickable-style-secondary"
data-headlessui-state="open"
Expand Down
20 changes: 10 additions & 10 deletions src/components/Select/__snapshots__/Select.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`<Select /> Compact story renders snapshot 1`] = `
<button
aria-controls="headlessui-listbox-options-13"
aria-expanded="true"
aria-haspopup="listbox"
aria-haspopup="true"
class="select-button select-button--compact"
data-headlessui-state="open"
id="headlessui-listbox-button-12"
Expand Down Expand Up @@ -106,7 +106,7 @@ exports[`<Select /> CompactUsingChildrenPropAndNoVisibleLabel story renders snap
<button
aria-controls="headlessui-listbox-options-39"
aria-expanded="true"
aria-haspopup="listbox"
aria-haspopup="true"
class="select-button select-button--compact"
data-headlessui-state="open"
id="headlessui-listbox-button-38"
Expand Down Expand Up @@ -203,7 +203,7 @@ exports[`<Select /> CompactWithOptionsRightAligned story renders snapshot 1`] =
<button
aria-controls="headlessui-listbox-options-18"
aria-expanded="true"
aria-haspopup="listbox"
aria-haspopup="true"
class="select-button select-button--compact"
data-headlessui-state="open"
id="headlessui-listbox-button-17"
Expand Down Expand Up @@ -300,7 +300,7 @@ exports[`<Select /> Default story renders snapshot 1`] = `
<button
aria-controls="headlessui-listbox-options-2"
aria-expanded="true"
aria-haspopup="listbox"
aria-haspopup="true"
class="select-button"
data-headlessui-state="open"
id="headlessui-listbox-button-1"
Expand Down Expand Up @@ -404,7 +404,7 @@ exports[`<Select /> DefaultWithVisibleLabel story renders snapshot 1`] = `
<button
aria-controls="headlessui-listbox-options-8"
aria-expanded="true"
aria-haspopup="listbox"
aria-haspopup="true"
aria-labelledby="headlessui-listbox-label-6 headlessui-listbox-button-7"
class="select-button"
data-headlessui-state="open"
Expand Down Expand Up @@ -502,7 +502,7 @@ exports[`<Select /> SeparateButtonAndMenuWidth story renders snapshot 1`] = `
<button
aria-controls="headlessui-listbox-options-23"
aria-expanded="true"
aria-haspopup="listbox"
aria-haspopup="true"
class="select-button"
data-headlessui-state="open"
id="headlessui-listbox-button-22"
Expand Down Expand Up @@ -606,7 +606,7 @@ exports[`<Select /> UsingChildrenProp story renders snapshot 1`] = `
<button
aria-controls="headlessui-listbox-options-29"
aria-expanded="true"
aria-haspopup="listbox"
aria-haspopup="true"
aria-labelledby="headlessui-listbox-label-27 headlessui-listbox-button-28"
class="select-button"
data-headlessui-state="open"
Expand Down Expand Up @@ -704,7 +704,7 @@ exports[`<Select /> UsingChildrenPropAndNoVisibleLabel story renders snapshot 1`
<button
aria-controls="headlessui-listbox-options-34"
aria-expanded="true"
aria-haspopup="listbox"
aria-haspopup="true"
class="select-button"
data-headlessui-state="open"
id="headlessui-listbox-button-33"
Expand Down Expand Up @@ -802,7 +802,7 @@ exports[`<Select /> UsingFunctionChildrenProp story renders snapshot 1`] = `
<button
aria-controls="headlessui-listbox-options-44"
aria-expanded="true"
aria-haspopup="listbox"
aria-haspopup="true"
class="function-children__button"
data-headlessui-state="open"
id="headlessui-listbox-button-43"
Expand Down Expand Up @@ -894,7 +894,7 @@ exports[`<Select /> renders the OpenByDefault story 1`] = `
<button
aria-controls="headlessui-listbox-options-51"
aria-expanded="true"
aria-haspopup="listbox"
aria-haspopup="true"
class="select-button"
data-headlessui-state="open"
id="headlessui-listbox-button-50"
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2002,7 +2002,7 @@ __metadata:
"@commitlint/config-conventional": ^16.2.4
"@commitlint/prompt-cli": ^16.3.0
"@geometricpanda/storybook-addon-badges": ^0.2.2
"@headlessui/react": ^1.7.7
"@headlessui/react": 1.7.5
"@popperjs/core": ^2.11.6
"@size-limit/preset-small-lib": ^4.12.0
"@storybook/addon-a11y": ^6.5.14
Expand Down Expand Up @@ -2534,15 +2534,15 @@ __metadata:
languageName: node
linkType: hard

"@headlessui/react@npm:^1.7.7":
version: 1.7.7
resolution: "@headlessui/react@npm:1.7.7"
"@headlessui/react@npm:1.7.5":
version: 1.7.5
resolution: "@headlessui/react@npm:1.7.5"
dependencies:
client-only: ^0.0.1
peerDependencies:
react: ^16 || ^17 || ^18
react-dom: ^16 || ^17 || ^18
checksum: 049d7ee46056fe96067f7b2f4f962672dfc824e68044ae38561a457278c8e38c0fd17592ab648ba5648e7e82bef9890eddbf329c9a00d11acf85700c7072a0bf
checksum: 0658251a38a23cb6e41bc4edb15184fa8a5470f57f8c9d948a1aa5ce4da5b1d6ec24ac488ce5d5dbf0ed49c0ad1f147a03db4d6661262eb60a1eed299527a0f0
languageName: node
linkType: hard

Expand Down

0 comments on commit 9539229

Please sign in to comment.