-
Notifications
You must be signed in to change notification settings - Fork 99
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
feat(code-block): added code block component #3937
Conversation
Preview: https://patternfly-pr-3937.surge.sh A11y report: https://patternfly-pr-3937-coverage.surge.sh
|
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.
Looks good to me @mcoker . You @lwigh?
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.
{{#if code-block-code--attribute}} | ||
{{{code-block-code--attribute}}} | ||
{{/if}}> | ||
{{~>@partial-block~}} |
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.
Did you mean to add ~
?
|
||
.pf-c-code-block__header { | ||
display: flex; | ||
width: 100%; |
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.
Don't think you need this.
width: 100%; |
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.
LPTM! 🎉
The demo looks great to me! |
This looks good @mcoker . My only question is whether the gap between the bottom of the text and the expansion widget needs to be so wide. Is that just a function of the block contents or is that built-in spacing? |
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.
Thanks for the clarification @mcoker . I approve then!
🎉 This PR is included in version 4.94.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
There should not be a need to put |
The reason that the |
fixes #3907