b35f5cdae0
Otherwise ul.{svelte-class} in ButtonGroup has higher priority then .show from Bootstrap
28 lines
748 B
Svelte
28 lines
748 B
Svelte
<!--
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
-->
|
|
<script lang="typescript">
|
|
import type { ToolbarItem } from "./types";
|
|
import ButtonGroup from "./ButtonGroup.svelte";
|
|
|
|
export let id: string;
|
|
export let className = "";
|
|
|
|
function extendClassName(className: string): string {
|
|
return `dropdown-menu btn-dropdown-menu py-1 mb-0 ${className}`;
|
|
}
|
|
|
|
export let buttons: ToolbarItem[];
|
|
</script>
|
|
|
|
<style>
|
|
:global(ul.btn-dropdown-menu) {
|
|
display: none;
|
|
background-color: var(--window-bg);
|
|
border-color: var(--medium-border);
|
|
}
|
|
</style>
|
|
|
|
<ButtonGroup {id} className={extendClassName(className)} {buttons} />
|