Skip to content

Comments

feat: component tile#2981

Open
pixelgitter wants to merge 8 commits intomainfrom
feature/component-tiles
Open

feat: component tile#2981
pixelgitter wants to merge 8 commits intomainfrom
feature/component-tiles

Conversation

@pixelgitter
Copy link
Contributor

Tile component opgezet. Dit is de eerste opzet, dus graag je kritische blik hierop! :)

@pixelgitter pixelgitter requested a review from bddjong November 26, 2025 15:31
@vercel
Copy link

vercel bot commented Nov 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
utrecht Error Error Dec 19, 2025 9:55am

Comment on lines 10 to 14
color: var(--utrecht-color-grey-10);
display: flex;
justify-content: space-between;
min-block-size: 6.25rem;
padding-block-end: var(--utrecht-space-inline-md);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mooi om meteen tokens te zien al! Ik zie dat er veel common of brand tokens nu nog in de CSS staan.

Common of brand tokens wil zeggen dat ze uit proprietary/design-tokens/src/{common,brand} komen. Die zijn "utrecht specifiek" en wil eigenlijk niet terug zien in de CSS van het component. In plaats daar van kan je dit doen in je CSS:

color: var(--utrecht-tile-color);
padding-block-end: var(--utrecht-tile-padding-block-end);

De design tokens .json file voor het component kan vervolgens de connectie leggen naar de common of brand laag. Bijvoorbeeld

"utrecht": {
  "tile": {
    "color": {
      "value": "{utrecht.color.grey.10}"
    },
  }
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ik zie dat je het tokens json stukje al hebt ;)

import iconSet from '@utrecht/icon/dist/index.json';
import readme from '@utrecht/tile-css/README.md?raw';
import tokensDefinition from '@utrecht/tile-css/src/tokens.json';
import React, { type ComponentProps, type CSSProperties } from 'react';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{ type ComponentProps, type CSSProperties } worden niet gebruikt dus kunnen weg

Comment on lines +28 to +31
'utrecht-tile--active': active,
'utrecht-tile--hover': hover,
'utrecht-tile--focus': focus,
'utrecht-tile--focus-visible': focusVisible,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deze pseudoclasses zijn hier niet nodig verwacht ik, waarschijnlijk hoeven ze ook niet in de TileProps te staan

focusVisible?: boolean;
keyboardSupport?: boolean;
icon?: ReactNode;
color?: 'default' | 'red' | 'green' | 'blue';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dit doet me denken aan de oude color attribute direct op HTML elements :), is er een semantische gedachte achter de kleuren te bedenken, en kunnen we de property wellicht veranderen naar appearance (zoals bij button)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hier komen we nog op terug, input nodig van anderen.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

De waarden die hier ingevuld staan, horen eigenlijk in:
proprietary/design-tokens/src/component/utrecht/tile.tokens.json.

De tokens.json die direct in de component map staat, is bedoeld voor de documentatie van de token spec voor dit component. Zie bijvoorbeeld de alert component:
https://github.com/nl-design-system/utrecht/blob/main/components/alert/src/tokens.json

@pixelgitter pixelgitter force-pushed the feature/component-tiles branch from a39c663 to 06f3a24 Compare December 9, 2025 16:16
@pixelgitter pixelgitter changed the title Feature/component tiles feat: component tile Dec 9, 2025
@codecov
Copy link

codecov bot commented Dec 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.73%. Comparing base (edac79f) to head (06f3a24).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2981   +/-   ##
=======================================
  Coverage   90.73%   90.73%           
=======================================
  Files         201      201           
  Lines        1760     1760           
  Branches      375      382    +7     
=======================================
  Hits         1597     1597           
  Misses        157      157           
  Partials        6        6           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud
Copy link

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants