-
Notifications
You must be signed in to change notification settings - Fork 78
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
Modal: Support icons in title for Modal component #5905
Comments
The design of modals does not encourage icons as this would mean we would have to create icons for every use case. The icons will generally become less meaningfull. Any particular use case or reason you think we shiould do this @edinfor. cc @kevinwhitedesign in design for his thoughts |
@tmcconechy we are already using icons in message modal, we are just reusing the same icons for the same purpose |
We only allow alert icons there https://main-enterprise.demo.design.infor.com/components/message/example-index.html as it is a different use case. I.E. error/info.. So still not sure if we want icons on every type of modal. Probably not |
in that case, we need to support message component to allow passing component as body instead of text only then...we need to show more details to customers in addition to just text messages, e.g.
|
|
@tmcconechy, perhaps, this ticket should have been opened in the NG project as the content of the dialog is an Angular Component and NOT plain TEXT or HTML. The problem is that, there is a gap between the Message Component and the Modal Component. The message one, allows you to show a status icon with the title BUT, it doesn't let you use a component as content. The opposite is true for the modal one, you can use a component as content BUT, it doesn't let you display a status icon with the title. So, basically, we need a setting like this in the Modal Component api:
Additionally, we would like to be able to pass a custom icon name other than 'error', 'alert', 'success', 'info'; similar to what other IDS components do. |
I still think this is clouding up the API for one use case then people may get confused and use modals for message status. I dont think we want to support status on modal when its really the function of the message component. We can see if we want modals to have icons in general but i think using them for status mixes concerns. So i have labeled this as something to review with design. The message component was intended to be string based and simple messages since its a directive i dont think we can make it take content like that either. But maybe in the future web component version... So given all that maybe just manually put the icons on the modal for now. |
Yes, I can see your point about having separate concerns; but, maybe we could ignore calling it "status" for the Modal Component and just provide a "settings.icon" which would place the icon with the title. I think that we could add the icon "manually" by passing the title as HTML to the Modal Component but, it doesn't render/look consistent with the Message Component. |
You may need to add a bit of css to do it manually. But I agree if we go ahead with this it would maybe an an Do you have any mockups/designs of what you a re trying to achieve? I'll review with the team |
@kevinwhitedesign what do you think about this request? |
@tmcconechy I don't see a problem with the team adding more context into the message for the user into why there's an error. This design is a bit narrow and some of the inconsistent vertical spacing should be addressed. |
ok sounds good - we can add an icon option to the modal. |
QA PAssed. v4.64.0-dev |
BDD attached. |
Is your feature request related to a problem? Please describe.
Modal dialog currently only supports text in modal header,
https://design.infor.com/code/ids-enterprise/latest/modal
Can we do the same as the message component and allow icon in the header for consistency?
https://design.infor.com/code/ids-enterprise/latest/message
Message component only takes text in the body.
Describe the solution you'd like
Enable the same configuration option to display icon in the modal title like message component.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
We have removed icon in modal component for now until the option becomes available.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: