Modal header has explicit "rounded-top" class
See original GitHub issueWhen adding headerBgVariant="dark"
to a modal, the rendered <header>
elements has an explicit rounded-top
class added to it. This is not compatible with using Bootstrap SCSS and setting $enable-rounded: false;
.
This only happens when adding a variant (doesn’t seem to matter which).
A default Bootstrap modal already has rounded corners (in accordance with $enable-rounded: false;
, so I would think these added classes are either unnecessary, or should be configurable in Vue.
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Modal - Bootstrap
We ask that you include modal headers with dismiss actions whenever possible, or provide another explicit dismiss action.
Read more >modal-header loses top left and right radius when new ...
1 Answer 1 ... That's because border radius in Bootstrap is applied to the .modal-content and by default .modal-header doesn't have a background....
Read more >Bootstrap CSS class: modal-body - Shuffle
Bootstrap CSS class modal-body with source code and live preview. You can copy the example and paste it ... accordion-header ... rounded-top. Breadcrumbs....
Read more >Modals | Accessibility Guidelines
<button> Activate Modal </button> </main> <div class='modal'> <Modal Content> ... After the modal aria-hidden attribute has been set to false and it's ...
Read more >Modal - Paper Kit by Creative Tim
Below is a static modal example (meaning its position and display have been overridden). Included are the modal header, modal body (required for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This seems to be back for me, with these versions:
I think the correct workaround is to fix the element that’s sticking out underneath the header - the
.modal-content
- not the header itself. If you apply this to the.modal-content
, it fixes it:Another quick fix is using CSS:
To make the background colors clipped to the border box (modal-container is what has the rounded corners)
One caveat is that this can affect overflowing modals i.e. dropdown menus or popovers/tooltips that need to show past the edge of the modal content.