Skip to content

Commit

Permalink
🐛 fix MucDivider (#282)
Browse files Browse the repository at this point in the history
* #183 🐛 fix MucDivider

* ♻️ moved css class into the component #183

* ♻️ refactored compoonents to use the muc-divider #183

---------

Co-authored-by: langehm <[email protected]>
Co-authored-by: langehm <[email protected]>
  • Loading branch information
3 people authored Nov 6, 2024
1 parent 8a31d5b commit faf6252
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
6 changes: 0 additions & 6 deletions public/assets/temporary/custom-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,3 @@ h5 {
font-size: 1.25rem;
}
}

.muc-divider {
align-self: stretch;
height: 0;
border: 1px var(--color-neutrals-blue) solid;
}
4 changes: 3 additions & 1 deletion src/components/Card/MucCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@
</div>
</div>

<div class="muc-divider" />
<muc-divider />

<slot name="content" />
</div>
</div>
</template>

<script setup lang="ts">
import { MucDivider } from "../Divider";
const emit = defineEmits<{
/**
* @param e eventname
Expand Down
8 changes: 5 additions & 3 deletions src/components/Divider/MucDivider.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<template>
<hr class="divider-border" />
<div class="muc-divider" />
</template>

<style scoped>
.divider-border {
border-bottom: 1px solid var(--color-neutrals-blue);
.muc-divider {
align-self: stretch;
height: 0;
border-bottom: 1px var(--color-neutrals-blue) solid;
}
</style>
7 changes: 3 additions & 4 deletions src/components/Intro/MucIntro.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script setup lang="ts">
import { MucDivider } from "../Divider";
defineProps<{
/**
* Title of the Intro
Expand Down Expand Up @@ -41,10 +43,7 @@ defineSlots<{
</h1>
</div>

<div
v-if="divider"
class="muc-divider"
/>
<muc-divider v-if="divider" />

<div class="m-intro-vertical__content">
<p style="padding-bottom: 32px">
Expand Down

0 comments on commit faf6252

Please sign in to comment.