Skip to content

Commit

Permalink
⚡ Removing unnecessary border using banner css instead of vue prop
Browse files Browse the repository at this point in the history
  • Loading branch information
MiloradFilipovic committed Jun 6, 2024
1 parent 811fcab commit 22bae0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
8 changes: 0 additions & 8 deletions packages/design-system/src/components/N8nCallout/Callout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ interface CalloutProps {
iconless?: boolean;
slim?: boolean;
roundCorners?: boolean;
onlyBottomBorder?: boolean;
}
defineOptions({ name: 'N8nCallout' });
Expand All @@ -54,7 +53,6 @@ const classes = computed(() => [
$style[props.theme],
props.slim ? $style.slim : '',
props.roundCorners ? $style.round : '',
props.onlyBottomBorder ? $style.onlyBottomBorder : '',
]);
const getIcon = computed(
Expand Down Expand Up @@ -95,12 +93,6 @@ const getIconSize = computed<IconSize>(() => {
border-radius: var(--border-radius-base);
}
.onlyBottomBorder {
border-top: 0;
border-left: 0;
border-right: 0;
}
.messageSection {
display: flex;
align-items: center;
Expand Down
7 changes: 6 additions & 1 deletion packages/editor-ui/src/components/banners/BaseBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ async function onCloseClick() {
icon-size="medium"
:round-corners="false"
:data-test-id="`banners-${props.name}`"
:only-bottom-border="true"
>
<div :class="[$style.mainContent, !hasTrailingContent ? $style.keepSpace : '']">
<slot name="mainContent" />
Expand Down Expand Up @@ -72,4 +71,10 @@ async function onCloseClick() {
align-items: center;
gap: var(--spacing-l);
}
:global(.n8n-callout) {
border-top: 0;
border-left: 0;
border-right: 0;
}
</style>

0 comments on commit 22bae0f

Please sign in to comment.