Skip to content

Commit

Permalink
chore: testids
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdehaven committed Jan 2, 2024
1 parent 29b2955 commit e013969
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion sandbox/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@save="contentSaved"
@update:model-value="contentUpdated"
>
<!-- <template #toolbar-right="{ save }">
<!-- <template #actions="{ save }">
<button @click="save">
Toolbar
</button>
Expand Down
4 changes: 2 additions & 2 deletions src/components/MarkdownUi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
@toggle-fullscreen="toggleFullscreen"
@toggle-html-preview="toggleHtmlPreview"
>
<template #toolbar-right>
<template #actions>
<slot
:cancel="cancel"
name="toolbar-right"
name="actions"
:save="save"
>
<template
Expand Down
14 changes: 10 additions & 4 deletions src/components/toolbar/MarkdownToolbar.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<template>
<div class="markdown-ui-toolbar">
<div
class="markdown-ui-toolbar"
data-testid="toolbar"
>
<div class="toolbar-left">
<div
v-if="editable && mode !== 'read'"
Expand Down Expand Up @@ -129,8 +132,11 @@
</ToolbarButton>
</InfoTooltip>
</div>
<div class="toolbar-right">
<slot name="toolbar-right" />
<div
class="actions"
data-testid="actions"
>
<slot name="actions" />
</div>
</div>
</template>
Expand Down Expand Up @@ -284,7 +290,7 @@ onMounted(() => {
}
.toolbar-left,
.toolbar-right {
.actions {
align-items: center;
display: flex;
gap: var(--kui-space-20, $kui-space-20);
Expand Down

0 comments on commit e013969

Please sign in to comment.