-
Notifications
You must be signed in to change notification settings - Fork 38
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
refactor: Add in code documentation and rename params for each component #514
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
27d0c2c
to
2a00103
Compare
|
||
/// {@macro accordion_spec_of} | ||
static const of = _$AccordionSpec.of; | ||
|
||
static const from = _$AccordionSpec.from; | ||
|
||
const AccordionSpec({ | ||
BoxSpec? container, | ||
FlexBoxSpec? flexContainer, |
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.
Lets change this to container
final IconData? iconRight; | ||
|
||
/// {@template remix.component.onPressed} |
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.
Let's move template definitions to the docs file
titleStyle, | ||
descriptionStyle, | ||
actionsFlex, | ||
actionsLayout, |
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.
Change this to actionsContainer and make it a FlexBox
BoxSpec? outerContainer, | ||
FlexSpec? contentLayout, | ||
FlexSpec? titleSubtitleLayout, | ||
FlexBoxSpec? flexContainer, |
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.
Changes this to container
titleSubtitleLayout, | ||
contentLayout, | ||
titleSubtitleFlex, | ||
flexContainer, |
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.
Change this to container
@@ -33,13 +33,13 @@ class SegmentedControlSpec extends Spec<SegmentedControlSpec> | |||
|
|||
const SegmentedControlSpec({ | |||
BoxSpec? container, | |||
FlexSpec? flex, | |||
FlexSpec? layout, |
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.
Combine this into the container and make it a FlexBoxSpec
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.
LGTM
Description
Changes
Review Checklist