-
Notifications
You must be signed in to change notification settings - Fork 58
feat: DataCard #243
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
base: adrien/messaging-card
Are you sure you want to change the base?
feat: DataCard #243
Conversation
b731529 to
5b77c22
Compare
a5e53aa to
5cae302
Compare
5b77c22 to
213b21d
Compare
5cae302 to
f93bbc2
Compare
213b21d to
93d5bcf
Compare
d72f1a1 to
3b8e08d
Compare
3b8e08d to
d45dbeb
Compare
| showArea | ||
| accessibilityLabel="Ethereum price chart" | ||
| areaType="dotted" | ||
| height={120} |
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: should DataCard restrict the size of the children vis removing the need to think about dimenstions here?
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 could see customers wanting to place buttons below the chart which would be tough here.
| /** Layout orientation of the card. Horizontal places header and visualization side by side, vertical stacks them. */ | ||
| layout: 'horizontal' | 'vertical'; | ||
| /** child node to display as the visualization (e.g., ProgressBar or ProgressCircle). */ | ||
| children?: React.ReactNode; |
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.
as we discussed in the bug bash, perhaps in the future we could consider a default visualization to show that satisfies the majority of use cases and the means to pass props through to the underlying Chart
What changed? Why?
Root cause (required for bugfixes)
UI changes
docs
storybook
Testing
How has it been tested?
Testing instructions
Illustrations/Icons Checklist
Required if this PR changes files under
packages/illustrations/**orpackages/icons/**Change management
type=routine
risk=low
impact=sev5
automerge=false