Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ Updated prod dependencies #3425

Merged
merged 9 commits into from
May 7, 2024
Merged

Conversation

oddvernes
Copy link
Collaborator

@oddvernes oddvernes commented May 6, 2024

resolves #3423

there is a bug in styled-components v6.1.9 that is already reported so I installed v6.1.8 instead. It has another issue where the conditional type that got added to Autocomplete (89dd0df) does not work properly if you overwrite Autocomplete styles by doing const StyledAutocomplete = styled(Autocomplete), then optionlabel becomes required regardless and you have to do optionLabel={(label: string) => label}. Could be related to this or the multitude of other issues related to typescript & attrs currently so something to keep an eye on

@oddvernes oddvernes marked this pull request as ready for review May 6, 2024 13:08
Copy link
Collaborator

@torleifhalseth torleifhalseth left a comment

Choose a reason for hiding this comment

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

LGTM 🚢

@@ -175,6 +175,7 @@ describe('Autocomplete', () => {
const onChange = jest.fn()
render(
<StyledAutocomplete
optionLabel={(label: string) => label}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to add this to the tests?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

after updating styled-components yes, that's what I am saying above. It is probably a bug in sc

@oddvernes oddvernes merged commit bff4388 into develop May 7, 2024
4 of 5 checks passed
@oddvernes oddvernes deleted the OOVE/3423-dependency-updates branch May 7, 2024 07:50
mhwaage pushed a commit to mhwaage/design-system that referenced this pull request Jul 29, 2024
* ⬆️ ramda, floating-ui

* ⬆️ react-aria

* rest of datepicker deps

* ⬆️ @tanstack/react-virtual

* ⬆️@tanstack/react-table

* ⬆️ styled-components

* ⬇️ try [email protected]

* autocomplete: update tests

* add comment to test workaround
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

⬆️core-react: Update prod dependencies
2 participants