Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions packages/cli/test/functional/test_site/expected/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,17 @@ <h2 id="panel-inside-modal">Panel inside modal<a class="fa fa-anchor" href="#pan
<p><strong>Panel content inside modal</strong></p>
</panel>
</modal>
<p><strong>The button of modal inside dismissible box should be properly positioned</strong></p>
<box dismissible>
<div>
<p>
<trigger for="modal-a">modal trigger</trigger>.
</p>
<modal id="modal-a"><template #header>modal header</template>
Lorem ipsum
</modal>
</div>
</box>
<p><strong>Unexpanded panel</strong></p>
<panel panelId="unexpanded-panel-header"><template #header>
<h2 id="unexpanded-panel-header">Unexpanded panel header<a class="fa fa-anchor" href="#unexpanded-panel-header" onclick="event.stopPropagation()"></a></h2>
Expand Down

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions packages/cli/test/functional/test_site/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,13 @@ and **this**.
</panel>
</modal>

**The button of modal inside dismissible box should be properly positioned**
<box dismissible>

<include src="testModal/DismissibleBox.md#example"/>

</box>

**Unexpanded panel**

<panel header="## Unexpanded panel header">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<div id="example">

<trigger for="modal-a">modal trigger</trigger>.

<modal header="modal header" id="modal-a" >
Lorem ipsum
</modal>

</div>
8 changes: 4 additions & 4 deletions packages/vue-components/src/Box.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<!-- Header wrapper, not rendered if there is no header attribute -->
<div
v-if="headerBool()"
:class="['box-header-wrapper', { 'alert-dismissible': dismissible }]"
:class="['box-header-wrapper', { 'alert-dismissible-box': dismissible }]"
>
<!-- icon on the left of the header -->
<div
Expand Down Expand Up @@ -64,7 +64,7 @@
:class="[
'box-body-wrapper',
{
'alert-dismissible': dismissible && !headerBool(),
'alert-dismissible-box': dismissible && !headerBool(),
'box-body-wrapper-with-heading': headerBool(),
},
]"
Expand Down Expand Up @@ -328,7 +328,7 @@ export default {
padding-top: 0.5rem;
}

.alert-dismissible {
.alert-dismissible-box {
padding-right: 4rem;
}

Expand All @@ -354,7 +354,7 @@ export default {
vertical-align: text-top;
}

.alert-dismissible .btn-close {
.alert-dismissible-box .btn-close {
padding: 1rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ exports[`Box with dismissible option renders correctly 1`] = `
<!---->

<div
class="box-body-wrapper alert-dismissible"
class="box-body-wrapper alert-dismissible-box"
>
<!---->

Expand Down