-
Notifications
You must be signed in to change notification settings - Fork 1
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
OSS::InformationSection component #457
Conversation
import type { IconNames } from './iconName.enum'; | ||
|
||
interface InformationSectionArgs { | ||
imageBadge: keyof typeof IconNames | string; |
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.
? 🤔
<:content> | ||
<p data-control-name='content-named-block'>{{this.namedBlockContent}}</p> | ||
</:content> | ||
</OSS::InformationSection>`); |
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.
nit: alignment of the
tag
It also looks like you have an empty state after each await render
statement in some of the tests of the file
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.
Fixed testfile
|
||
interface InformationSectionArgs { | ||
badgeIcon?: keyof typeof IconNames; | ||
svgIcon?: string; |
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.
imageUrl
should be a bit more "permissive" language wise :)
the icons might be pngs sometimes
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.
Changed to imageUrl
export default { | ||
title: 'Components/OSS::InformationSection', | ||
argTypes: { | ||
title: { |
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.
you can be a little more precise with the argTypes in storybook, there are examples in other files in the project
table: {
type: { summary: 'string' },
defaultValue: { summary: 'undefined' }
},
control: {
type: 'text'
}
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.
Specified argTypes in sb
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.
I think the defaultValue
s are wrong ^^
should be 'undefined' everywhere no ? 🤷
<div class="fx-row fx-gap-px-6"> | ||
<OSS::Tag @label="Hello" @skin="primary" /> | ||
<OSS::Button @size="sm" @label="Action Button"/> | ||
</div> |
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.
nit: indentation
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.
Fixed indentation
export default { | ||
title: 'Components/OSS::InformationSection', | ||
argTypes: { | ||
title: { |
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.
I think the defaultValue
s are wrong ^^
should be 'undefined' everywhere no ? 🤷
What does this PR do?
It adds a new component used in the 2FA project
Related to: #
What are the observable changes?
Good PR checklist