Skip to content

Commit

Permalink
Mim 2150 expansionbox fix max height (#1438)
Browse files Browse the repository at this point in the history
* MIM-2150: Fix max-height if text changes

* updated package-lock
  • Loading branch information
ssb-cgn authored Jan 22, 2025
1 parent 96128f7 commit 966c36c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@statisticsnorway/ssb-component-library",
"version": "2.4.4",
"version": "2.4.5",
"description": "Component library for SSB (Statistics Norway)",
"main": "lib/bundle.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ExpansionBox/ExpansionBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const ExpansionBox: React.FC<ExpansionBoxProps> = ({
})
}
}
}, [isOpen])
}, [isOpen, text])

return (
<div className={classNameList.join(' ')}>
Expand Down

0 comments on commit 966c36c

Please sign in to comment.