Skip to content

Commit

Permalink
fix: bruk fontstiler for riktig størrelse i kompakt
Browse files Browse the repository at this point in the history
  • Loading branch information
wkillerud committed Feb 2, 2023
1 parent ad3bf4e commit 825b1cd
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 15 deletions.
4 changes: 2 additions & 2 deletions packages/table-react/documentation/ActionTableExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const ActionTableExample: FC<ExampleComponentProps> = ({ boolValues, choiceValue
<TableHead srOnly={headless}>
<TableRow>
{headings.map((column) => (
<TableHeader key={column} density="compact" bold>
<TableHeader key={column} bold>
{column}
</TableHeader>
))}
Expand Down Expand Up @@ -71,7 +71,7 @@ export const actionTableExampleCode = ({ boolValues, choiceValues }: ExampleComp
<TableHead srOnly={${boolValues?.["Skjul overskrift"]}}>
<TableRow>
{headings.map((column) => (
<TableHeader key={column} density="compact" bold>
<TableHeader key={column} bold>
{column}
</TableHeader>
))}
Expand Down
4 changes: 2 additions & 2 deletions packages/table-react/documentation/ClickableTableExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const ClickableTableExample: FC<ExampleComponentProps> = ({ boolValues, choiceVa
<TableHead srOnly={headless}>
<TableRow>
{headings.map((column) => (
<TableHeader key={column} density="compact" bold>
<TableHeader key={column} bold>
{column}
</TableHeader>
))}
Expand Down Expand Up @@ -66,7 +66,7 @@ export const clickableTableExampleCode = ({ boolValues, choiceValues }: ExampleC
<TableHead srOnly={${boolValues?.["Skjul overskrift"]}}>
<TableRow>
{headings.map((column) => (
<TableHeader key={column} density="compact" bold>{column}</TableHeader>
<TableHeader key={column} bold>{column}</TableHeader>
))}
</TableRow>
</TableHead>
Expand Down
4 changes: 2 additions & 2 deletions packages/table-react/documentation/ExpandableTableExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const ExpandableTableExample: FC<ExampleComponentProps> = ({ boolValues, choiceV
<TableHead srOnly={headless}>
<TableRow>
{headings.map((column) => (
<TableHeader key={column} density="compact" bold>
<TableHeader key={column} bold>
{column}
</TableHeader>
))}
Expand Down Expand Up @@ -106,7 +106,7 @@ export const expandableTableExampleCode = ({ choiceValues, boolValues }: Example
<TableHead srOnly={headless}>
<TableRow>
{headings.map((column) => (
<TableHeader key={column} density="compact" bold>
<TableHeader key={column} bold>
{column}
</TableHeader>
))}
Expand Down
4 changes: 2 additions & 2 deletions packages/table-react/documentation/MobileListTableExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const MobileListTableExample: FC<ExampleComponentProps> = ({ choiceValues }) =>
<TableHead>
<TableRow>
{columns.map((column, index) => (
<TableHeader key={index} density="compact" bold>
<TableHeader key={index} bold>
{column}
</TableHeader>
))}
Expand Down Expand Up @@ -62,7 +62,7 @@ export const mobileListTableExampleCode = ({ choiceValues }: ExampleComponentPro
<TableHead>
<TableRow>
{columns.map((column, index) => (
<TableHeader key={index} density="compact" bold>
<TableHeader key={index} bold>
{column}
</TableHeader>
))}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const MobileScrollTableExample: FC = () => {
<TableHead>
<TableRow>
{columns.map((column, index) => (
<TableHeader key={index} density="compact" bold>
<TableHeader key={index} bold>
{column}
</TableHeader>
))}
Expand Down Expand Up @@ -62,7 +62,7 @@ export const mobileScrollTableExampleCode = `
<TableHead>
<TableRow>
{columns.map((column, index) => (
<TableHeader key={index} density="compact" bold>
<TableHeader key={index} bold>
{column}
</TableHeader>
))}
Expand Down
4 changes: 2 additions & 2 deletions packages/table-react/documentation/StickyTableExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const StickyTableExample: FC<ExampleComponentProps> = ({ boolValues, choiceValue
<TableHead srOnly={headless} sticky>
<TableRow>
{columns.map((column, index) => (
<TableHeader key={index} density="compact" bold>
<TableHeader key={index} bold>
{column}
</TableHeader>
))}
Expand Down Expand Up @@ -63,7 +63,7 @@ export const stickyTableExampleCode = ({ boolValues, choiceValues }: ExampleComp
<TableHead srOnly={${boolValues?.["Skjul overskrift"]}} sticky>
<TableRow>
{columns.map((header, index) => (
<TableHeader key={index} density="compact" bold>
<TableHeader key={index} bold>
{header}
</TableHeader>
))}
Expand Down
4 changes: 2 additions & 2 deletions packages/table-react/documentation/TableExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const TableExample: FC<ExampleComponentProps> = ({ boolValues, choiceValues }) =
<TableHead srOnly={headless}>
<TableRow>
{columns.map((column, index) => (
<TableHeader key={index} density="compact" bold>
<TableHeader key={index} bold>
{column}
</TableHeader>
))}
Expand Down Expand Up @@ -54,7 +54,7 @@ export const tableExampleCode = ({ boolValues, choiceValues }: ExampleComponentP
<TableHead srOnly={${boolValues?.["Skjul overskrift"]}}>
<TableRow>
{columns.map((header, index) => (
<TableHeader key={index} density="compact" bold>
<TableHeader key={index} bold>
{header}
</TableHeader>
))}
Expand Down
3 changes: 2 additions & 1 deletion packages/table/_table-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
}

.jkl-table-header {
@include jkl.text-style("body");
@include jkl.use-font-variables("jkl-table-header");

padding: var(--jkl-table-header-padding);
text-align: left;
white-space: nowrap;
Expand Down

0 comments on commit 825b1cd

Please sign in to comment.