FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(emptyState): set the correct size modifier using the variant prop by boaz0 · Pull Request #2692 · patternfly/patternfly-react · GitHub

fix(emptyState): set the correct size modifier using the variant prop - #2692

Merged
jschuler merged 1 commit into
patternfly:masterfrom
boaz0:closes_2680
Aug 23, 2019
Merged

fix(emptyState): set the correct size modifier using the variant prop#2692
jschuler merged 1 commit into
patternfly:masterfrom
boaz0:closes_2680

Conversation

boaz0 commented Aug 12, 2019

Copy link
Copy Markdown
Member

What:

closes #2680

//cc @jessiehuff can you look at this, am I missing something? 🙏
//cc @carlosga can you look at this?

Copy link
Copy Markdown
Collaborator

PatternFly-React preview: https://patternfly-react-pr-2692.surge.sh

carlosga commented Aug 13, 2019 via email

Copy link
Copy Markdown

boaz0 commented Aug 13, 2019

Copy link
Copy Markdown
Member Author

@carlosga - that's a good idea. let me try and do it.

/** Content rendered inside the EmptyState */
children: React.ReactNode;
/** Modifies EmptyState max-width */
variant?: 'small' | 'large' | 'full';

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

For docs purposes we decided to type out the variant options

Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
full = 'full'
}

const maxWidthModifiers: { [variant in keyof typeof EmptyStateVariant]: string } = {

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks for the extra type safety.

jschuler merged commit 26e653b into patternfly:master Aug 23, 2019

boaz0 commented Aug 24, 2019

Copy link
Copy Markdown
Member Author

Thank you!
//cc @jschuler @redallen @carlosga

boaz0 deleted the closes_2680 branch August 24, 2019 20:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

PF4 Possible bug on empty state size class binding

6 participants


Back | FazBrowse Home | New Git URL