Skip to content
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

Add docs for list heading #4544

Merged
merged 6 commits into from
Sep 24, 2021
Merged

Add docs for list heading #4544

merged 6 commits into from
Sep 24, 2021

Conversation

lhbrennan
Copy link
Collaborator

Description

Extend the docs page for list to include ListHeading.

Valid values for ListHeading's `maxLines` prop are 1 and 2. When the
provided value is invalid, fallback to a value of 1, and console.warn
the user.
@vercel
Copy link

vercel bot commented Sep 22, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/uber-ui-platform/baseweb/2LMXohuVrbQX4qJUpAJ2gP2RagTU
✅ Preview: https://baseweb-git-add-docs-for-list-heading-uber-ui-platform.vercel.app

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 22, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e2d00f7:

Sandbox Source
Basic usage Configuration

@@ -78,6 +82,9 @@ const ListHeading = React.forwardRef<HeadingPropsT, HTMLLIElement>(
'endEnhancerDescription will not be rendered if endEnhancer is not a string',
);
}
if (maxLines && !isMaxLinesValid(maxLines)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Can we wrap this is a __DEV__ if statement, maybe do the same for isEndEnhancerString check?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks.

@lhbrennan lhbrennan merged commit 0f96911 into master Sep 24, 2021
@lhbrennan lhbrennan deleted the add-docs-for-list-heading branch February 23, 2022 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants