Open
Conversation
th-form-card.ts — main component index.ts — barrel export th-form-card.stories.js — Storybook stories
…n order to allow users more flexibility in the case of complex forms. created tests, and updated stories. implemented forms into modals on main.ts
johnlcos
requested changes
Mar 13, 2026
|
|
||
| export const Loading: Story = { | ||
| args: { loading: true }, | ||
| }; |
Member
There was a problem hiding this comment.
I think a interaction story would be helpful here, just displaying how the form would actually be used and submissions handled.
| } | ||
|
|
||
| return html` | ||
| <div class="form-card" part="card"> |
Member
There was a problem hiding this comment.
I thought the form card would use the native html form element.
…form> with @submit preventDefault. and interaction stories have been added.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes: #
Related Tickets: TRAIL-38 https://jira.atlassian.krum.io/browse/TRAIL-38?atlOrigin=eyJpIjoiNzljMjgwM2FlOTg3NDM2Yjg4NzE4N2Q1NDgwMjg5Y2MiLCJwIjoiaiJ9
Adds two new Lit web components: trailhand-form-card and trailhand-form-row, that serve as the layout layer for forms housed inside modals (or standalone with optional shadow). The form card provides a flex-column content area with optional action buttons; the form row provides a per-section grid with an optional section title. Together they compose the multi-section, multi-column form patterns shown in the TRAIL-38 mockups.
Type of Change
Changes Made
Primary Changes
Secondary/Collateral Changes
Technical Notes
Files Modified
New Components:
Stories:
Tests:
Global:
Implementation Details
Testing
How to Test
Test Coverage
Browsers Tested
Potential Regressions
Screenshots / Videos
Checklist
Additional Context