Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress list #978

Open
15 tasks
Rerbun opened this issue Dec 3, 2024 · 1 comment
Open
15 tasks

Progress list #978

Rerbun opened this issue Dec 3, 2024 · 1 comment

Comments

@Rerbun
Copy link
Contributor

Rerbun commented Dec 3, 2024

Image

Omschrijving

  • Bolletjes met getallen om weer te geven hoe ver iemand is in een wizard/beslisboom.
  • Den Haag component (@gemeente-denhaag/process-steps -> Status) met extra styling

Links

Checks

Definition of ready

  • Naam van de component is duidelijk.
  • Doel van component is beschreven.
  • Design is aanwezig.
  • Tokens zijn aanwezig.
  • Waar in de templates wordt deze component gebruikt? Zijn er praktijkvoorbeelden waarin de component al gebruikt wordt?
  • Beschrijving gemaakt van wat er moet gebeuren om de taak succesvol af te ronden (deliverables).
  • Testcases / stappen om handmatig te testen.

Definition of done

Component

  • Component is beschikbaar in de index.
  • Design tokens worden gebruikt.

Storybook

  • Tenminste 1 default story.
  • States en properties stories.
  • Documentatie is toegepast, check template.
  • Accessiblity checks slagen.

Tests

  • Het component rendert.
  • Tenminste de Basis functionaliteit van het component wordt getest.
@Rerbun Rerbun converted this from a draft issue Dec 3, 2024
@Rerbun
Copy link
Contributor Author

Rerbun commented Dec 3, 2024

Voorbeeld implementatie:

// React implementatie
import { Status as ProgressSteps } from '@gemeente-denhaag/process-steps';

<ProgressSteps
    steps={steps.map((step, i) => ({
        ...step,
        key: step.title,
        id: step.title,
        marker: i + 1,
        status: i < currentStep ? 'checked' : (i === currentStep ? 'current' : undefined) }))}
/>
// Styling
.progress-content-wrapper {
  padding: 1rem;
}

.progress-content {
    grid-area: progress;
    border-inline-end-color: black;
    border-inline-end-style: solid;
    border-inline-end-width: 1px;
}

Tokens:

"denhaag": {
        "process-steps": {
            "step": {
                "heading": {
                    "checked": {
                        "color": {
                            "value": "{custom.color.green}",
                            "type": "color"
                        }
                    },
                    "not-checked": {
                        "color": {
                            "value": "hsl(0 0% 43%)",
                            "type": "color"
                        }
                    },
                    "current": {
                        "color": {
                            "value": "{custom.color.primary}",
                            "type": "color"
                        }
                    }
                }
            }
        },
        "step-marker": {
            "checked": {
                "background-color": {
                    "value": "{custom.color.green}",
                    "type": "color"
                },
                "color": {
                    "value": "{custom.color.wit}",
                    "type": "color"
                }
            },
            "current": {
                "background-color": {
                    "value": "{custom.color.primary}",
                    "type": "color"
                },
                "border-color": {
                    "value": "{custom.color.primary}",
                    "type": "color"
                }
            },
            "connector": {
                "checked": {
                    "outline-color": {
                        "value": "{custom.color.green}",
                        "type": "color"
                    }
                }
            }
        }
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant