Fixing Jinja macro and removing button-group isolate

This commit is contained in:
Ronan Berder
2026-01-13 16:37:14 +08:00
parent 128f79c2e4
commit a7f686e71b
4 changed files with 28 additions and 7 deletions
+2 -1
View File
@@ -388,7 +388,8 @@
/* Button Group */
@layer components {
.button-group {
@apply inline-flex w-fit items-stretch isolate;
@apply inline-flex w-fit items-stretch;
/* isolate */
> *:focus-visible,
> :is(.dropdown-menu, .popover, .select) > button:focus-visible {
+3 -5
View File
@@ -83,12 +83,10 @@
</footer>
{% endif %}
{% if close_button %}
<form method="dialog">
<button aria-label="Close dialog">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-x-icon lucide-x"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>
<button type="button" aria-label="Close dialog" onclick="this.closest('dialog').close()">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-x-icon lucide-x"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>
</button>
</form>
{% endif %}
</div>
</dialog>
{% endmacro %}
{% endmacro %}