Skip to content

Commit 32be1c9

Browse files
authored
Merge pull request #37 from kampsy/dev
Dev to main
2 parents d5b4c2d + 0f2f07d commit 32be1c9

File tree

5 files changed

+61
-11
lines changed

5 files changed

+61
-11
lines changed

.github/workflows/beta-release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Beta Release
2+
3+
on:
4+
push:
5+
branches:
6+
- tailwindcss-v4
7+
8+
permissions:
9+
contents: write # to be able to publish a GitHub release
10+
issues: write # to comment on issues after release
11+
pull-requests: write # to comment on PRs after release
12+
id-token: write # for OIDC (npm provenance)
13+
14+
jobs:
15+
beta-release:
16+
name: Build & Publish @beta Release
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Setup Node
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 'lts/*'
28+
29+
- name: Use PNPM
30+
uses: pnpm/action-setup@v4
31+
with:
32+
version: 8
33+
34+
- name: Install dependencies
35+
run: pnpm install
36+
37+
# - name: Verify Integrity
38+
# run: pnpm audit signatures
39+
40+
- name: Run Semantic Release
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
44+
run: npx semantic-release --tag-format='beta-v{version}'

src/lib/collapse/content.svelte

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@
3232
3333
let content: HTMLDivElement = $state<any>();
3434
$effect(() => {
35-
if (isActive) {
36-
content.setAttribute('aria-hidden', 'false');
37-
} else {
38-
content.setAttribute('aria-hidden', 'true');
35+
if (content) {
36+
if (isActive) {
37+
content.setAttribute('aria-hidden', 'false');
38+
} else {
39+
content.setAttribute('aria-hidden', 'true');
40+
}
3941
}
4042
});
4143
</script>

src/lib/menu/root.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<div
5252
in:fade|local
5353
out:fade|local
54-
class="fixed top-0 left-0 w-full h-full bg-black bg-opacity-[0.4] lg:hidden z-[1000]"
54+
class="fixed top-0 left-0 w-full h-full bg-kui-black bg-opacity-40 lg:hidden z-[1000]"
5555
></div>
5656
{/if}
5757

src/lib/modal/content.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<script lang="ts">
2-
import { Button } from '$lib/index.js';
32
import { clickOutside } from '$lib/utils/event.js';
43
import { getContext, type Snippet } from 'svelte';
54
import { cubicOut } from 'svelte/easing';

src/lib/modal/root.svelte

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,17 @@
5757
});
5858
</script>
5959

60-
<dialog bind:this={dialog} tabindex="-1">
60+
<!--Backgrop background-->
61+
{#if active}
6162
<div
62-
in:fade|local
63-
out:fade|local
64-
class="fixed top-0 left-0 w-full h-full flex items-center justify-center bg-kui-black bg-opacity-35 dark:bg-opacity-45"
65-
>
63+
in:fade|local={{ duration: 100 }}
64+
out:fade|local={{ duration: 100 }}
65+
class="fixed top-0 left-0 w-full h-full bg-kui-black bg-opacity-40 z-[1000]"
66+
></div>
67+
{/if}
68+
69+
<dialog bind:this={dialog}>
70+
<div in:fade out:fade class="fixed top-0 left-0 w-full h-full flex items-center justify-center">
6671
{@render children()}
6772
</div>
6873
</dialog>

0 commit comments

Comments
 (0)