Skip to content

Commit

Permalink
Fixed bug with className
Browse files Browse the repository at this point in the history
  • Loading branch information
ssb-cgn committed Sep 2, 2024
1 parent a9b80c2 commit 694db0c
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.2.12",
"version": "2.2.13",
"description": "Component library for SSB (Statistics Norway)",
"main": "lib/bundle.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const Table = forwardRef<HTMLTableElement, TableProps>(({ className, caption, da

return (
<div className={`ssb-table-wrapper${isOverflowing ? ' overflowing' : ''}`} ref={tableWrapperRef}>
<table className={`ssb-table${className ?? ''}`} ref={ref}>
<table className={`ssb-table${className ? ` ${className}` : ''}`} ref={ref}>
{caption && (
<caption data-noterefs={dataNoteRefs}>
<div className='caption-wrapper' style={{ position: 'relative' }}>
Expand Down

0 comments on commit 694db0c

Please sign in to comment.