Giter Site home page Giter Site logo

digdir / designsystemet Goto Github PK

View Code? Open in Web Editor NEW
58.0 3.0 29.0 44.23 MB

Designsystemet

Home Page: https://designsystemet.no

License: MIT License

JavaScript 6.14% CSS 16.76% TypeScript 64.25% HTML 0.25% MDX 12.60%
components css designsystem react storybook tokens typescript

designsystemet's People

Contributors

albertlarsen avatar allinox avatar barsnes avatar bjosttveit avatar chlenix avatar dependabot[bot] avatar dortedrange avatar febakke avatar framitdavid avatar hegeaal avatar ivarne avatar jeffreiffers avatar johlie avatar lasseklovstad avatar magnusrm avatar mikaelrss avatar mimarz avatar mrosvik avatar olemartinorg avatar stianmorsund avatar thetecharch avatar thiagopiacentini avatar thuneer avatar tomaseng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

designsystemet's Issues

Figma: Upgrade to organization plan

With the org licence we will have:

  • Org-wide libraries
  • Design system analytics
  • Branching and merging
  • Centralized file management
  • Private plugins and widgets

New component: Chip

Related information and research findings:

Chip specification

  • Should come in three variants:
    • Chip
      • Should support polymorphism (chip can be used as navigation links or buttons)
      • By default a button. Should always be an interactive element. For static elements use the Tag component instead.
    • Chip removable
    • Chip toggle
      • Single (radio)
      • Multi (checkbox)
  • Should come in two sizes in first version: xsmall, small.
  • Should not support different colors
  • There should be a Chip.group component for grouping chips

Tasks

  1. mrosvik
  2. 1 of 3
    component documentation/guidelines
    mrosvik
  3. react
    framitdavid hegeaal
    mimarz

Figma component library:

https://www.figma.com/file/vpM9dqqQPHqU6ogfKp5tlr/DDS---Core-Components?node-id=7882%3A46619&t=gzm3ed7E13uV63R1-1

(Legacy) Select not synced with design

Description of the bug

  1. Tab-focus (purple outline) should only show when using keyboard navigation, not when you activate the select-box.

image

  1. When resizing window (storybook) the component seems to be a fix width and does not scale.
    image

  2. There should be two sizes: Medium with 18px, and Small with 16px font size both for label, description and options. Seems like the options is larger than the selected text.
    image

  3. The X on the chip is not centered
    image

  4. Should be named "Single select" and "Multi select" instead of "Flervalgsmeny" and E"nkel"
    image

See Figma sketches for correct design:
https://www.figma.com/file/vpM9dqqQPHqU6ogfKp5tlr/DDS---Core-Components?node-id=7577%3A43639&t=xlYDTn7VXmpckqPy-1

Steps To Reproduce

Go to https://digdir.github.io/designsystem/?path=/story/kjernekomponenter-select-flervalgsmeny--normal to reproduce the behavior.

Additional Information

No response

New component: Link

What component is it that needs specification?

Link

Tasks

Link to correct placement in our Figma component library.

  • Design is fully specified in Figma
    • Design component with all relevant states
    • Do a accessibility test of the sketches
    • Functionality/animation is described and prototyped if relevant
    • Describe keyboardnavigation (Only relevant if its not a native html component)
  • Write acceptance criteria and link to Figma

SVG

  • If there are used any svgs in this component is it available for the developer?

Checkbox: Write guidelines for usage

  • Generelle retningslinjer
  • "Do´s and don´t"-eksempel på plassering av checkboxes vertical/horizontal
  • Lage et eksempel på at det er en logisk sammenheng mellom ledetekst og svaralternativer.

Tasks

Schema components need more flexible text properties

In order to add custom formatting and components to labels, descriptions etc., it is not sufficient to take in these properties as simple strings. I suggest changing their type to React.ReactNode. This will make it possible to use the design system components in the preview mode of the form builder in Altinn Studio:
Image

Workshop: Overordnet Strategi WS med Marked/Kom

Workshop med Marked/Kom

  • Hvordan kommunisere og involvere eksternt mtp. det vi ønsker å oppnå: Et samarbeid rundt felles designsystem i det offentlige.
  • Mål for markedsføringsarbeidet
  • Identifisere avhengigheter og se på hvordan det henger sammen med andre initiativ i Digdir
  • Kanalstrategi - Hvilke området er det viktig at vi er synlige.

Det er satt opp to økter med Marked og Kom 8.juni.

Component: Text area (Not synced with design)

Text-area er påbegynt i denne issuen, men mangler noen detaljer fra Figma-designet:

  • Mulighet for Counter
  • Mulighet for å sette default høyde, slik at bruker for en antydning av forventet mengde input (feltet skal fortsatt kunne resizes i høyden av bruker).
  • Feil border (se design)

Image

New component: Popover

What component is it that needs specification?

Popover

Tasks

Link to correct placement in our Figma component library.
https://www.figma.com/file/vpM9dqqQPHqU6ogfKp5tlr/DDS---Core-Components?node-id=10702%3A68732&t=gzm3ed7E13uV63R1-1
image

  • Design is fully specified in Figma
    • Design component with all relevant states
    • Do a accessibility test of the sketches
    • Functionality/animation is described and prototyped if relevant
    • Describe keyboardnavigation (Only relevant if its not a native html component)
  • Write acceptance criteria and link to Figma

SVG

  • If there are used any svgs in this component is it available for the developer?

Tokens: Endre NPM pakken til å peke mot designsystemet

  • Endre navn på NPM pakken til "@digdir/design-system-tokens" og publisere
  • Markere gamle NPM pakken som depricated og peke til nye NPM pakken
  • Oppdatere pakke-avhengigheten i storybook for designsystemet
  • Oppdatere dokumentasjon i storybook: Endre navn i shield/badge og fikse path i tokens-table komponenten

Chip: Write guidelines for usage

Chip Guidelines and examples

Tasks

Component/Popover

Describe the component

Features:

  • Should be able to specify any ReactNode as the trigger
  • Popover content should be able to contain any ReactNode
  • Popover should be given color style by using variant-prop. Ex: Default: white, Info: blue, Warning: yellow, Danger: red.
  • Popover should handle keyboard navigation and handle screen-readers
  • Popover should be WCAG compliant

Issue in app-frontend-react for tracking purposes: https://github.com/orgs/Altinn/projects/39/views/2?pane=issue&itemId=18161239

If you have any examples or similar components feel free to include links or screenshots here

Repo: Lage conventional-commit regel i repoet

Legge til en commit-regel i repoet som tvinger brukere til å følge conventional-commits standarden. Konsekvensen av denne endringen er at brukere får ikke lov til å commite om det ikke følger standarden.

New component: Helptext

What component is it that needs specification?

Helptext
Skjermbilde 2023-01-13 kl  09 09 24

Tasks

Link to correct placement in our Figma component library

  • Design is fully specified in Figma
    • Design component with all relevant states
    • Do a accessibility test of the sketches
    • Functionality/animation is described and prototyped if relevant
    • Keyboard navigation specified

SVG

  • If there are used any svgs in this component is it available for the developer?
    • The outlined and filled questionmark icon is a part of core icons

Storefront: Consider making our own storefront

Vi bruker Storybook som mellomløsning inntil videre, med mål om å lage en egen dokumentasjonsside senere. React komponentene vi bygger opp i markdown filene kan flyttes over til ny løsning (ikonsøk, komponent-bruk osv). NAV bruker https://www.sanity.io/, og har en react-app som konsumerer CMSet via et API. Siden det er et CMS, gir det alle med tilgang gode redigeringsmuligheter på nettsiden.

Component: Lage grid komponenter

  • Kalle inn til møte med DS-teamet for å diskutere hvordan komponentene skal se ut
  • Legge ut forslaget i design-systen slack kanalen

Font: Replace FF-DIN and Altinn-DIN with Inter in Figma

Description
Because of lisens issues and lacking functionality on FF DIN and Altinn-DIN we have to find one font that we can use on all our products. After reviewing different potensial Open Source fonts we landed on Inter as the best solution.

The font should be replaced in all components and texts in Figma. Inter is larger than the previous used DIN-font, so we should make sure it aligns correct in different contexts, and that the vertical space inside containers is correct.

In scope

  • Define the different weights and sizes we need to replace FF DIN
  • Test how the different pages will look/behave after a font change
  • Replace all fonts in Figma

Relevant:
Change the font on relevant pages/systems in code

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.