question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Modal without close and cancel button

See original GitHub issue

Hi Carbon team,

I need a Modal without close button and with disabled Cancel button (or without that). I know I can build it from ComposedModal elements. But I’m wondering, why the Modal doesn’t have a secondaryButtonDisabled and a hideCloseButton property? 🤔 What do you think? I can make a PR for this if you think it’s worth it. 😃

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
emyarodcommented, Mar 19, 2021

you can go ahead and open a PR but I think it would be better to confirm that modal close buttons can be removed first cc @carbon-design-system/design

0reactions
emyarodcommented, Mar 22, 2021

after confirming with design, modals without close buttons are not supported in Carbon. ideally the user should have some way to dismiss a modal

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cancel vs Close: Design to Distinguish the Difference
When users intend to dismiss a modal or view by clicking the X button, but the system instead completely cancels the process and...
Read more >
How to close modal popup only when pressing the cancel ...
I have a simple modal and I was wondering how can I only allow the modal to be closed when clicking the "X"...
Read more >
modal windows - Are "close" and "x" on a popup redundant?
No : Place both an OK or Close button plus a X button. There are different types of users with different interaction habits,...
Read more >
How to hide OK or Cancel buttons on Modal? #1757 - GitHub
We can hide the buttons by using their properties - cancelButtonProps and okButtonProps . If you do not want to display buttons in...
Read more >
Best Practices for Modal Windows - UX Movement
Your modal window will need a 'Cancel' button if the user is doing a task where they're entering information. If there's a form...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found