-
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(modal-box): added support for title icon, modal alert states #3487
Conversation
Preview: https://patternfly-pr-3487.surge.sh A11y report: https://patternfly-pr-3487-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.
LGTM!
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 @mcoker But maybe change the title of the last example to read "Error alert modal title" for consistency with the others?
@mcarrano updated! |
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 great. Thanks @mcoker !
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.
The spacing between the icon and title text looks a bit tight to me, but implementation is sound.
Yes, good catch @mattnolting. I initially had it mocked up as 16px, not 8px (as it appears to be but not sure). |
--pf-c-modal-box__title-icon--Color: var(--pf-c-modal-box--m-success__title-icon--Color); | ||
} | ||
|
||
&.pf-m-default { |
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.
do you need a modifier for default variation?
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.
I think so. Without a modifier, the icon is just a regular text color icon. With an alert modifier, it represents the alert state, and "default" is an alert state. WDYT?
<i class="fas fa-info-circle" aria-hidden="true"></i> | ||
{{else if modal-box--IsSuccessAlert}} | ||
<i class="fas fa-check-circle" aria-hidden="true"></i> | ||
{{else if modal-box--IsWarningAlert}} |
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.
should this use fa-fw so all the icons line up?
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.
updated!
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
🎉 This PR is included in version 4.47.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fixes #3374