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
[WNMGDS-2724] ds-choice-list web component #3081
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing this was going well until I discovered a bug I created. I've also highlighted a spot where you'll need to account for some other kinds of children your parser might encounter.
packages/design-system/src/components/web-components/ds-choice-list/ds-choice-list.stories.tsx
Outdated
Show resolved
Hide resolved
packages/design-system/src/components/web-components/ds-choice-list/ds-choice-list.tsx
Outdated
Show resolved
Hide resolved
packages/design-system/src/components/web-components/ds-choice-list/ds-choice-list.stories.tsx
Show resolved
Hide resolved
.../browser/snapshots/stories/web-components-choicelist--html-choices-cmsgov--Mobile-Chrome.png
Outdated
Show resolved
Hide resolved
packages/design-system/src/components/web-components/ds-choice-list/ds-choice-list.stories.tsx
Outdated
Show resolved
Hide resolved
packages/design-system/src/components/web-components/ds-choice-list/ds-choice-list.tsx
Outdated
Show resolved
Hide resolved
<ds-choice-list type="checkbox"> | ||
<ds-choice label="Foo" value="foo"></ds-choice> | ||
<ds-choice label="Bar" value="bar"></ds-choice> | ||
</ds-choice-list> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
packages/design-system/src/components/web-components/ds-choice/ds-choice.stories.tsx
Outdated
Show resolved
Hide resolved
.../browser/snapshots/stories/web-components-choicelist--html-choices-cmsgov--Mobile-Chrome.png
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's working great!
WNMGDS-2724
children
as HTML elements (only<ds-choice>
)