Skip to content

Commit

Permalink
Merge branch 'main' into aksel-v6
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh authored Jan 18, 2024
2 parents 9512fc6 + 930c772 commit 40f688f
Show file tree
Hide file tree
Showing 28 changed files with 520 additions and 59 deletions.
2 changes: 2 additions & 0 deletions @navikt/aksel-icons/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @navikt/aksel-icons

## 5.15.1

## 5.15.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@navikt/aksel-icons",
"version": "5.15.0",
"version": "5.15.1",
"author": "Aksel | NAV",
"homepage": "https://aksel.nav.no/ikoner",
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions @navikt/aksel-stylelint/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @navikt/aksel-stylelint

## 5.15.1

## 5.15.0

## 5.14.0
Expand Down
6 changes: 3 additions & 3 deletions @navikt/aksel-stylelint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@navikt/aksel-stylelint",
"version": "5.15.0",
"version": "5.15.1",
"author": "Aksel | NAV",
"homepage": "https://aksel.nav.no/grunnleggende/kode/stylelint",
"repository": {
Expand Down Expand Up @@ -35,8 +35,8 @@
"dev": "yarn watch:lint"
},
"devDependencies": {
"@navikt/ds-css": "^5.15.0",
"@navikt/ds-tokens": "^5.15.0",
"@navikt/ds-css": "^5.15.1",
"@navikt/ds-tokens": "^5.15.1",
"@types/jest": "^29.0.0",
"concurrently": "7.2.1",
"copyfiles": "2.4.1",
Expand Down
7 changes: 7 additions & 0 deletions @navikt/aksel/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @navikt/aksel

## 5.15.1

### Patch Changes

- Updated dependencies []:
- @navikt/ds-css@5.15.1

## 5.15.0

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions @navikt/aksel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@navikt/aksel",
"version": "5.15.0",
"version": "5.15.1",
"description": "Aksel command line interface. Handles css-imports, codemods and more",
"author": "Aksel | NAV designsystem team",
"license": "MIT",
Expand Down Expand Up @@ -29,7 +29,7 @@
},
"homepage": "https://aksel.nav.no/grunnleggende/kode/kommandolinje",
"dependencies": {
"@navikt/ds-css": "5.15.0",
"@navikt/ds-css": "5.15.1",
"axios": "1.6.0",
"chalk": "4.1.0",
"clipboardy": "^2.3.0",
Expand Down
2 changes: 2 additions & 0 deletions @navikt/core/css/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @navikt/ds-css

## 5.15.1

## 5.15.0

## 5.14.0
Expand Down
4 changes: 2 additions & 2 deletions @navikt/core/css/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-css",
"version": "5.15.0",
"version": "5.15.1",
"description": "CSS for NAV Designsystem",
"author": "Aksel | NAV designsystem team",
"keywords": [
Expand All @@ -27,7 +27,7 @@
"css:get-version": "node config/get-version.js"
},
"devDependencies": {
"@navikt/ds-tokens": "^5.15.0",
"@navikt/ds-tokens": "^5.15.1",
"cssnano": "6.0.0",
"fast-glob": "3.2.11",
"lodash": "4.17.21",
Expand Down
10 changes: 10 additions & 0 deletions @navikt/core/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @navikt/ds-react

## 5.15.1

### Patch Changes

- HelpText: HelpText-state ble ikke riktig oppdatert ved klikk ([#2643](https://github.com/navikt/aksel/pull/2643))

- Updated dependencies []:
- @navikt/ds-tokens@5.15.1
- @navikt/aksel-icons@5.15.1

## 5.15.0

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions @navikt/core/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-react",
"version": "5.15.0",
"version": "5.15.1",
"description": "Aksel react-components for NAV designsystem",
"author": "Aksel | NAV designsystem team",
"license": "MIT",
Expand Down Expand Up @@ -38,8 +38,8 @@
},
"dependencies": {
"@floating-ui/react": "0.25.4",
"@navikt/aksel-icons": "^5.15.0",
"@navikt/ds-tokens": "^5.15.0",
"@navikt/aksel-icons": "^5.15.1",
"@navikt/ds-tokens": "^5.15.1",
"@radix-ui/react-tabs": "1.0.0",
"@radix-ui/react-toggle-group": "1.0.0",
"clsx": "^1.2.1",
Expand Down
2 changes: 1 addition & 1 deletion @navikt/core/react/src/help-text/HelpText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const HelpText = forwardRef<HTMLButtonElement, HelpTextProps>(
<button
{...rest}
ref={mergedRef}
onClick={composeEventHandlers(onClick, () => setOpen((x) => x))}
onClick={composeEventHandlers(onClick, () => setOpen((x) => !x))}
className={cl(className, "navds-help-text__button")}
type="button"
aria-expanded={open}
Expand Down
2 changes: 2 additions & 0 deletions @navikt/core/tailwind/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @navikt/ds-tailwind

## 5.15.1

## 5.15.0

## 5.14.0
Expand Down
4 changes: 2 additions & 2 deletions @navikt/core/tailwind/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-tailwind",
"version": "5.15.0",
"version": "5.15.1",
"description": "Tailwind config based on @navikt/ds-tokens",
"author": "Aksel | NAV designsystem team",
"keywords": [
Expand All @@ -24,7 +24,7 @@
"directory": "@navikt/core/tailwind"
},
"devDependencies": {
"@navikt/ds-tokens": "^5.15.0",
"@navikt/ds-tokens": "^5.15.1",
"@types/jest": "^29.0.0",
"color": "4.2.3",
"jest": "^29.0.0",
Expand Down
2 changes: 2 additions & 0 deletions @navikt/core/tokens/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @navikt/ds-tokens

## 5.15.1

## 5.15.0

## 5.14.0
Expand Down
2 changes: 1 addition & 1 deletion @navikt/core/tokens/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-tokens",
"version": "5.15.0",
"version": "5.15.1",
"description": "Design-tokens for NAV designsystem",
"author": "Aksel | NAV designsystem team",
"keywords": [
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

- Ikoner: Synket ikoner med Figma. Lagt til nytt ikon `FigureChild` ([#2629](https://github.com/navikt/aksel/pull/2629))

### @navikt/ds-react

- HelpText: HelpText-state ble ikke riktig oppdatert ved klikk ([#2643](https://github.com/navikt/aksel/pull/2643))

## 5.14

### @navikt/ds-react
Expand Down
10 changes: 5 additions & 5 deletions aksel.nav.no/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"playroom"
],
"dependencies": {
"@navikt/aksel-icons": "^5.15.0",
"@navikt/ds-css": "^5.15.0",
"@navikt/ds-react": "^5.15.0",
"@navikt/ds-tailwind": "^5.15.0",
"@navikt/ds-tokens": "^5.15.0"
"@navikt/aksel-icons": "^5.15.1",
"@navikt/ds-css": "^5.15.1",
"@navikt/ds-react": "^5.15.1",
"@navikt/ds-tailwind": "^5.15.1",
"@navikt/ds-tokens": "^5.15.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export const ArticleCard = ({

return (
<Link
href={`/${slug}`}
href={`/${
slug.replace("god-praksis/", "gp/") /* TODO: Remove replace */
}`}
className={cl(
"w-full flex-shrink overflow-hidden text-ellipsis rounded-large bg-surface-default p-5 shadow-small transition-shadow ease-out hover:shadow-large focus:outline-none focus-visible:shadow-focus",
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChevronDownIcon, ChevronUpIcon } from "@navikt/aksel-icons";
import { Button, useId, type HeadingProps } from "@navikt/ds-react";
import cl from "clsx";
import React, { forwardRef, useRef, useState } from "react";
import React, { useRef, useState } from "react";

export interface ShowMoreProps
extends Omit<React.HTMLAttributes<HTMLElement>, "onClick"> {
Expand Down Expand Up @@ -62,7 +62,8 @@ export interface ShowMoreProps
* Toads have dry, leathery skin, short legs, and large bumps covering the parotoid glands.
* </ShowMore>
*/
export const ShowMore = forwardRef<HTMLElement, ShowMoreProps>(
export const ShowMore =
/*forwardRef<HTMLElement, ShowMoreProps>(*/
(
{
as: Component = "aside",
Expand All @@ -77,7 +78,7 @@ export const ShowMore = forwardRef<HTMLElement, ShowMoreProps>(
className,
"aria-labelledby": ariaLabelledby,
...rest
},
}: ShowMoreProps,
/* ref, */
) => {
const localRef = useRef<HTMLElement>(null);
Expand Down Expand Up @@ -136,8 +137,7 @@ export const ShowMore = forwardRef<HTMLElement, ShowMoreProps>(
</div>
</Component>
);
},
);
};

export default ShowMore;

Expand Down
Loading

0 comments on commit 40f688f

Please sign in to comment.