Skip to content

fix(modal): add support for status modifiers on title#6180

Merged
mcoker merged 2 commits intopatternfly:mainfrom
mcoker:issue-6091
Feb 9, 2024
Merged

fix(modal): add support for status modifiers on title#6180
mcoker merged 2 commits intopatternfly:mainfrom
mcoker:issue-6091

Conversation

@mcoker
Copy link
Contributor

@mcoker mcoker commented Jan 4, 2024

fixes #6091

@mcoker mcoker requested a review from tlabaj January 4, 2024 01:27
@patternfly-build
Copy link
Collaborator

patternfly-build commented Jan 4, 2024

Copy link
Member

@srambach srambach left a comment

Choose a reason for hiding this comment

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

Looks good - is it worth saying that if the modifier is placed on the title, it will override the modifier on the modal box? I know the react component won't do this, but if someone does it, it might be confusing. Or not, I'm fine if you don't think it's necessary.
Will we phase out allowing the modifier on the modal box?

Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

LGTM

@mcoker
Copy link
Contributor Author

mcoker commented Feb 6, 2024

The status modifier classes can be applied directly to the modal title element, instead of the parent modal.

@srambach probably not, just from the wording suggesting it goes on one or the other (and not both)? But I could go either way, though I may need some help wording that properly 😅

Will we phase out allowing the modifier on the modal box?

Yeah, assuming this update works out for the next modal, it would be great to just go with a single approach. There is still a possibility adding the modifier to the title like this is too narrowly scoped (like we also want to draw a status color border around the modal or something like that), but I think we have some time to test that out before the next component is promoted and the current one is deprecated. I went back and added a beta tag to the new example so we can change it if we need to.

WDYT - good to merge or want to discuss any more updates?

Copy link
Member

@srambach srambach left a comment

Choose a reason for hiding this comment

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

🚀

@mcoker mcoker merged commit 445654e into patternfly:main Feb 9, 2024
@patternfly-build
Copy link
Collaborator

🎉 This PR is included in version 5.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@patternfly-build
Copy link
Collaborator

🎉 This PR is included in version 5.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Modal - Add support for status modifiers to -pf-v5-c-modal__title container

4 participants