Skip to content

Commit

Permalink
[aksel.nav.no] Show breakpoints in GuidePanel examples (#3192)
Browse files Browse the repository at this point in the history
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com>
  • Loading branch information
HalvorHaugan and KenAJoh authored Oct 2, 2024
1 parent 4fcfaf3 commit 3a239e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
MonitorIcon,
TabletIcon,
} from "@navikt/aksel-icons";
import { HStack } from "@navikt/ds-react";
import { Box, HStack } from "@navikt/ds-react";
import styles from "./examples.module.css";

type withDsT = {
Expand Down Expand Up @@ -70,6 +70,9 @@ export const withDsExample = (
style={{ background: getBg(background) }}
>
<Icon aria-hidden fontSize="1.5rem" /> {`${breakpoint}`}
<Box marginInline="2 0" className="text-text-subtle">
{width}px
</Box>
</HStack>
);
};
Expand Down
2 changes: 1 addition & 1 deletion aksel.nav.no/website/pages/eksempler/guidepanel/demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Example = () => {
};

// EXAMPLES DO NOT INCLUDE CONTENT BELOW THIS LINE
export default withDsExample(Example);
export default withDsExample(Example, { showBreakpoints: true });

/* Storybook story */
export const Demo = {
Expand Down
2 changes: 1 addition & 1 deletion aksel.nav.no/website/pages/eksempler/guidepanel/poster.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Example = () => {
};

// EXAMPLES DO NOT INCLUDE CONTENT BELOW THIS LINE
export default withDsExample(Example);
export default withDsExample(Example, { showBreakpoints: true });

/* Storybook story */
export const Demo = {
Expand Down

0 comments on commit 3a239e4

Please sign in to comment.