Skip to content

feat(Label): add no overflow prop - #4680

Merged
tlabaj merged 3 commits into
patternfly:masterfrom
kmcfaul:label-truncation
Aug 24, 2020
Merged

tlabaj merged 3 commits into
patternfly:masterfrom
kmcfaul:label-truncation

Conversation

@kmcfaul

@kmcfaul kmcfaul commented Aug 12, 2020

Copy link
Copy Markdown
Contributor

What: Closes #4660

Looking for feedback on the prop name, is isTruncated clear or would something else like noWrap or noOverflow be better?

@patternfly-build

patternfly-build commented Aug 12, 2020 •

Copy link
Copy Markdown
Collaborator

jenny-s51
jenny-s51 previously approved these changes Aug 19, 2020

@jenny-s51 jenny-s51 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.

These changes look good. isTruncated makes sense to me -- added a similar prop called isLeftTruncated in https://github.com/patternfly/patternfly-react/pull/4691/files.

jessiehuff
jessiehuff previously approved these changes Aug 19, 2020

@jessiehuff jessiehuff 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! I agree that isTruncated makes sense to me.

@tlabaj
tlabaj requested a review from mcoker August 21, 2020 14:33
<br />
<br />
<Label color="blue">Blue</Label> <Label color="blue" icon={<InfoCircleIcon />}>
<Label color="blue">Blue</Label>{' '}

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.

are these change because of the linter?

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.

These changes are because of Prettier

@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.

Can you please add new prop tp demo app and add test cse.

@kmcfaul
kmcfaul dismissed stale reviews from jessiehuff and jenny-s51 via ba9152e August 21, 2020 15:12
mcoker
mcoker previously approved these changes Aug 21, 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!

@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

@jessiehuff jessiehuff 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!

@tlabaj
tlabaj merged commit e9dbde9 into patternfly:master Aug 24, 2020
@patternfly-build

Copy link
Copy Markdown
Collaborator

Your changes have been released in:

Thanks for your contribution! 🎉

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.

Label: text truncation

6 participants