Skip to content

Commit

Permalink
feat: force new versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarni committed Aug 26, 2024
1 parent 5d7d37f commit 05bbf33
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
22 changes: 10 additions & 12 deletions packages/accordion-react/src/Accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ export interface AccordionProps extends WithChildren {
id?: string;
}

export const Accordion: FC<AccordionProps> = ({ className, density, id, ...rest }) => {
return (
<section
role="group"
data-testid="jkl-accordion"
className={cn("jkl-accordion", className)}
data-density={density}
id={id}
{...rest}
/>
);
};
export const Accordion: FC<AccordionProps> = ({ className, density, id, ...rest }) => (
<section
role="group"
data-testid="jkl-accordion"
className={cn("jkl-accordion", className)}
data-density={density}
id={id}
{...rest}
/>
);
4 changes: 2 additions & 2 deletions packages/accordion/accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
@use "@fremtind/jkl-core/jkl";

@include jkl.light-mode-variables {
--jkl-accordion-expanded-background: #{jkl.$color-hvit};
--jkl-accordion-border: #{jkl.$color-svaberg};
--jkl-accordion-focus: #{jkl.$color-focus-color};
--jkl-accordion-hover: #{jkl.$color-stein};
--jkl-accordion-expanded-background: #{jkl.$color-hvit};
}

@include jkl.dark-mode-variables {
--jkl-accordion-expanded-background: #{jkl.$color-skifer};
--jkl-accordion-border: #{jkl.$color-stein};
--jkl-accordion-focus: #{jkl.$color-focus-color--darkbg};
--jkl-accordion-hover: #{jkl.$color-svaberg};
--jkl-accordion-expanded-background: #{jkl.$color-skifer};
}

@include jkl.comfortable-density-variables {
Expand Down

0 comments on commit 05bbf33

Please sign in to comment.