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
5 changes: 5 additions & 0 deletions .changeset/cuddly-lands-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@spectrum-web-components/card': patch
---

- **Fixed**: `sp-card` component relies on `sp-popover` for certain toggle interactive behaviors, but this dependency was missing from its dependency tree.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice description.

1 change: 1 addition & 0 deletions packages/card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"@spectrum-web-components/checkbox": "1.6.0",
"@spectrum-web-components/divider": "1.6.0",
"@spectrum-web-components/icons-workflow": "1.6.0",
"@spectrum-web-components/popover": "1.6.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does every card require a popover? It almost seems like this should be an optional dependency? When does a card use a popover?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be a regular dependency, not an optional one. The component needs to be available when the toggles feature is used. As per my understanding optional dependencies are typically for features which can be completely replaced or deleted. We have never shipped any components with optionalDependencies

"@spectrum-web-components/shared": "1.6.0",
"@spectrum-web-components/styles": "1.6.0"
},
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7688,6 +7688,7 @@ __metadata:
"@spectrum-web-components/checkbox": "npm:1.6.0"
"@spectrum-web-components/divider": "npm:1.6.0"
"@spectrum-web-components/icons-workflow": "npm:1.6.0"
"@spectrum-web-components/popover": "npm:1.6.0"
"@spectrum-web-components/shared": "npm:1.6.0"
"@spectrum-web-components/styles": "npm:1.6.0"
languageName: unknown
Expand Down
Loading