Skip to content

Commit 9aeef24

Browse files
committed
Remove children wrapper in cover modal
1 parent cb48d56 commit 9aeef24

File tree

3 files changed

+23
-9
lines changed

3 files changed

+23
-9
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org).
66

7+
## [0.9.7] - 2025-05-31
8+
### Added
9+
10+
### Changed
11+
* *Nothing*
12+
13+
### Deprecated
14+
* *Nothing*
15+
16+
### Removed
17+
* *Nothing*
18+
19+
### Fixed
20+
* Remove children wrapper in cover modal.
21+
22+
723
## [0.9.6] - 2025-05-31
824
### Added
925
* Add `size` property to tailwind-based `Table` component.

src/tailwind/feedback/CardModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export const CardModal: FC<CardModalProps> = ({
173173
<>
174174
<div
175175
className={clsx(
176-
'tw:px-4 tw:py-3 tw:absolute tw:top-0 tw:left-0 tw:right-0',
176+
'tw:px-4 tw:py-3 tw:absolute tw:top-0 tw:left-0 tw:right-0 tw:z-3000',
177177
'tw:flex tw:items-center tw:justify-between',
178178
'tw:text-white tw:bg-linear-to-b tw:from-black/70 tw:to-black/10',
179179
'tw:[text-shadow:_0_2px_4px_rgb(0_0_0/_0.8)]',
@@ -182,7 +182,7 @@ export const CardModal: FC<CardModalProps> = ({
182182
<h5>{title}</h5>
183183
<CloseButton onClick={onClose} label="Close dialog" />
184184
</div>
185-
<div>{children}</div>
185+
{children}
186186
</>
187187
) : (
188188
<>

test/tailwind/feedback/__snapshots__/CardModal.test.tsx.snap

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ exports[`<CardModal /> > renders expected variant 3`] = `
390390
class="tw:group/card tw:rounded-md tw:shadow-md tw:border tw:border-lm-border tw:dark:border-dm-border tw:bg-lm-primary tw:dark:bg-dm-primary tw:w-full tw:h-full tw:relative tw:overflow-auto"
391391
>
392392
<div
393-
class="tw:px-4 tw:py-3 tw:absolute tw:top-0 tw:left-0 tw:right-0 tw:flex tw:items-center tw:justify-between tw:text-white tw:bg-linear-to-b tw:from-black/70 tw:to-black/10 tw:[text-shadow:_0_2px_4px_rgb(0_0_0/_0.8)]"
393+
class="tw:px-4 tw:py-3 tw:absolute tw:top-0 tw:left-0 tw:right-0 tw:z-3000 tw:flex tw:items-center tw:justify-between tw:text-white tw:bg-linear-to-b tw:from-black/70 tw:to-black/10 tw:[text-shadow:_0_2px_4px_rgb(0_0_0/_0.8)]"
394394
>
395395
<h5>
396396
The title
@@ -417,12 +417,10 @@ exports[`<CardModal /> > renders expected variant 3`] = `
417417
</svg>
418418
</button>
419419
</div>
420-
<div>
421-
<div
422-
data-testid="content"
423-
>
424-
This is the content
425-
</div>
420+
<div
421+
data-testid="content"
422+
>
423+
This is the content
426424
</div>
427425
</div>
428426
</form>

0 commit comments

Comments
 (0)