Skip to content

Commit

Permalink
fix: change class names of table card elements
Browse files Browse the repository at this point in the history
  • Loading branch information
ifrost1 committed Jun 13, 2022
1 parent ab18d0a commit 33afbe0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
18 changes: 13 additions & 5 deletions .storybook/recipes/TableCard/TableCard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,24 @@
\*------------------------------------*/

/**
* 1)
* 1) Card with a title, table, and button within
*/
.standards-coverage {
}

.standards-coverage__table {
/**
* Table card table
* 1) Actual table within the card
*/
.table-card__table {
color: var(--eds-theme-color-text-neutral-subtle);
}

.standards-coverage__table-header-cell {
/**
* Table card table header cell
*/
.table-card__table-header-cell {
/**
* First child within table card table header cell
*/
&:first-child {
@media all and (min-width: $eds-bp-md) {
width: 11.875rem;
Expand Down
6 changes: 3 additions & 3 deletions .storybook/recipes/TableCard/TableCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const TableCard = ({
tableColumns,
...other
}: Props) => {
const componentClassName = clsx(styles['standards-coverage'], className, {});
const componentClassName = clsx(styles['table-card'], className, {});

return (
<Card className={componentClassName} {...other}>
Expand All @@ -76,15 +76,15 @@ export const TableCard = ({
</Heading>
<Table
caption="Standards coverage"
className={styles['standards-coverage__table']}
className={styles['table-card__table']}
hideCaption={true}
>
<TableHeader>
<TableRow>
{tableColumns.map((item, index) => {
return (
<TableHeaderCell
className={styles['standards-coverage__table-header-cell']}
className={styles['table-card__table-header-cell']}
key={'table-header-cell-' + index}
>
{item.title}
Expand Down

0 comments on commit 33afbe0

Please sign in to comment.