Skip to content

feat(DescriptionList): add new DescriptionList component - #4586

Merged
jschuler merged 22 commits into
patternfly:masterfrom
jenny-s51:iss4523
Aug 3, 2020
Merged

jschuler merged 22 commits into
patternfly:masterfrom
jenny-s51:iss4523

Conversation

@jenny-s51

Copy link
Copy Markdown
Contributor

What: Closes #4523

@patternfly-build

patternfly-build commented Jul 20, 2020 •

Copy link
Copy Markdown
Collaborator

Comment thread packages/react-core/src/components/DescriptionList/DescriptionList.tsx Outdated
Comment thread packages/react-core/src/components/DescriptionList/DescriptionList.tsx Outdated
Comment thread packages/react-core/src/components/DescriptionList/DescriptionListText.tsx Outdated
Comment thread packages/react-core/src/components/DescriptionList/DescriptionListText.tsx Outdated
Comment thread packages/react-core/src/components/DescriptionList/DescriptionListText.tsx Outdated
@tlabaj
tlabaj requested a review from mattnolting July 21, 2020 17:14
@jenny-s51 jenny-s51 changed the title feat(DescriptionList): adds new DescriptionList component feat(DescriptionList): add new DescriptionList component Jul 22, 2020
@jenny-s51
jenny-s51 requested a review from tlabaj July 23, 2020 13:55

@mcarrano mcarrano left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks good to me @jenny-s51 . @maryshak1996 can you also give this a look?

@maryshak1996

Copy link
Copy Markdown

@mcarrano @jenny-s51 I think that this is looking good! The only thing that I think that we should update would be the default spacing in between columns from 16px to 24. The tightness of the columns makes it a little difficult to distinguish between where one description pair starts and another ends (screenshot of what I'm referring to below)
Screen Shot 2020-07-27 at 12 01 51 PM

@jenny-s51
jenny-s51 requested a review from tlabaj July 29, 2020 18:04
@jenny-s51
jenny-s51 requested a review from mcarrano July 30, 2020 18:44
mcarrano
mcarrano previously approved these changes Jul 30, 2020

@mcarrano mcarrano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks goo @jenny-s51 !

dlabrecq
dlabrecq previously approved these changes Jul 31, 2020
mcoker
mcoker previously approved these changes Aug 3, 2020

@mcoker mcoker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm! thanks @jenny-s51!

@jschuler jschuler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, just comment on class string

...props
}: DescriptionListDescriptionProps) => (
<dd className={css(styles.descriptionListDescription, className)} {...props}>
<div className={'pf-c-description-list__text'}>{children}</div>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this class defined on styles.descriptionListText?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No it isn't @jschuler - there is no .pf-c-description-list__text class or corresponding styles in https://github.com/patternfly/patternfly/blob/master/src/patternfly/components/DescriptionList/description-list.scss, but this class is still applied in the core examples for some reason

...props
}: DescriptionListTermProps) => (
<dt className={css(styles.descriptionListTerm, className)} {...props}>
<span className={'pf-c-description-list__text'}>{children}</span>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same comment

@jenny-s51
jenny-s51 dismissed stale reviews from mcoker, dlabrecq, and mcarrano via 89f3c3e August 3, 2020 18:49
tlabaj
tlabaj previously approved these changes Aug 3, 2020

@tlabaj tlabaj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

mcoker
mcoker previously approved these changes Aug 3, 2020
@jenny-s51
jenny-s51 dismissed stale reviews from mcoker and tlabaj via 32f0ffb August 3, 2020 20:42

@mcarrano mcarrano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me

@tlabaj tlabaj left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jschuler
jschuler merged commit 776aba7 into patternfly:master Aug 3, 2020
@patternfly-build

Copy link
Copy Markdown
Collaborator

Your changes have been released in:

Thanks for your contribution! 🎉

@jenny-s51
jenny-s51 deleted the iss4523 branch August 4, 2020 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add description list component

9 participants