Skip to content

feat: migration web components layout - #31

Merged
Zlodej43sm merged 14 commits into
developfrom
feat/migration-web-components-layout
Oct 20, 2026
Merged

Zlodej43sm merged 14 commits into
developfrom
feat/migration-web-components-layout

Conversation

@Zlodej43sm

Copy link
Copy Markdown
Collaborator
  • migration web components layout
  • rework stories
  • improve storybook

Zlodej43sm and others added 10 commits October 2, 2026 08:28
- Add comprehensive play tests for Scroll component (vertical, horizontal, auto-hide variants)
- Fix skeleton keyframe rendering with `cssKeyframesToText` utility
- Compose `gd-loader` in button loading state instead of inline spinner
- Export layout components from index
- Enforce story parity validation: check all components have matching React story inventory, descriptions, and titles
- Prevent Web Component stories from containing React/migration language
- Validate loader composition in loading states across all components
- Update Typography to support webComponent token overrides
- Fix story source formatter to handle nested elements correctly
- Add layout components to SSR test surface
- Add aria-labels to inputs, buttons, and interactive controls (InputFile, Slider, RadioGroup, Carousel)
- Fix skeleton theme resolution to match React behavior by excluding colors/animations from token theme
- Add non-breaking space to skeleton slot default to ensure height in empty state
- Change Snackbar close button from div to button element
- Fix Link disabled state: add tabIndex and aria-disabled, improve className concatenation
- Update RadioGroup label color token from caption to title for better contrast
- Replace named colors with hex values in Row/Column stories for WCAG compliance
- Add alt attributes to Card and Carousel images
- Fix Chart role to 'group' when legend is interactive
- Add skeleton-story-parity test coverage
Delete entire design-core library (package.json, project config, source) and remove migration manifest documentation for layout-structure, loader-separator-skeleton, slider-controls, and toggle-truncate-typography-wrapper components.
… notes from stories

Apply per-size Typography variants to avatar fallback text matching source component behavior. Change Icon, Box, and Link hosts to `display: contents` to avoid adding layout boxes. Forward Box styles to internal root and make it the focus target. Register custom icons API. Apply Box styles to Icon svg element. Update test coverage for layout transparency, focus delegation, and Typography composition.
… notes from stories

Apply per-size Typography variants to avatar fallback text matching source component behavior. Change Icon, Box, and Link hosts to `display: contents` to avoid adding layout boxes. Forward Box styles to internal root and make it the focus target. Register custom icons API. Apply Box styles to Icon svg element. Update test coverage for layout transparency, focus delegation, and Typography composition.
…-components-layout

# Conflicts:
#	libs/ui/src/icons/catalog.spec.ts
Add `check:story-parity` and `check:story-parity:browser` scripts to validate that Web Component stories match React story inventory, descriptions, and titles. Browser variant opens interactive report.
Type the Textarea argType helper with Storybook's InputType, cast the
InputFile mock arg in clearMock, and add DOM.Iterable to the storybook
tsconfig so NodeList iteration type-checks.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Zlodej43sm
Zlodej43sm requested a review from rcasian October 20, 2026 06:38
@Zlodej43sm
Zlodej43sm marked this pull request as ready for review October 20, 2026 06:38
Change test selector from generic 'Button' to 'Disabled Button' to match the actual accessible name in the atoms-button--disabled-button story.
Use regex matcher for input with helper text (accessible name includes "Label Helper text" from wrapping label) and remove overly-specific name matcher for read-only input test.
Intercept `gd-*` custom events by patching `dispatchEvent` instead of relying on story `<output>` elements. Wait for Storybook play functions to complete before running checks to avoid race conditions. Update test assertions to match current story data (option names, values, and initial states).
@Zlodej43sm
Zlodej43sm merged commit 9d60131 into develop Oct 20, 2026
4 checks passed
@Zlodej43sm
Zlodej43sm deleted the feat/migration-web-components-layout branch October 20, 2026 12:55
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