mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
refactor(alert): vertically center alert icon / endContent (#5512)
This commit is contained in:
parent
67f8665ab5
commit
a83e3fb5a0
6
.changeset/two-trains-rhyme.md
Normal file
6
.changeset/two-trains-rhyme.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
"@heroui/alert": patch
|
||||||
|
"@heroui/theme": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
vertically center alert icon / endContent (#2678)
|
||||||
@ -40,7 +40,7 @@
|
|||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": ">=18 || >=19.0.0-rc.0",
|
"react": ">=18 || >=19.0.0-rc.0",
|
||||||
"react-dom": ">=18 || >=19.0.0-rc.0",
|
"react-dom": ">=18 || >=19.0.0-rc.0",
|
||||||
"@heroui/theme": ">=2.4.17",
|
"@heroui/theme": ">=2.4.19",
|
||||||
"@heroui/system": ">=2.4.18"
|
"@heroui/system": ">=2.4.18"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@ -24,7 +24,7 @@ import {colorVariants} from "../utils";
|
|||||||
*/
|
*/
|
||||||
const alert = tv({
|
const alert = tv({
|
||||||
slots: {
|
slots: {
|
||||||
base: "flex flex-grow flex-row w-full items-start py-3 px-4 gap-x-1",
|
base: "flex flex-grow flex-row w-full items-center py-3 px-4 gap-x-1",
|
||||||
mainWrapper:
|
mainWrapper:
|
||||||
"h-full flex-grow min-h-10 ms-2 flex flex-col box-border items-start text-inherit justify-center",
|
"h-full flex-grow min-h-10 ms-2 flex flex-col box-border items-start text-inherit justify-center",
|
||||||
title: "text-small w-full font-medium block text-inherit leading-5",
|
title: "text-small w-full font-medium block text-inherit leading-5",
|
||||||
@ -82,7 +82,7 @@ const alert = tv({
|
|||||||
},
|
},
|
||||||
hasContent: {
|
hasContent: {
|
||||||
false: {
|
false: {
|
||||||
base: "items-start",
|
base: "items-center",
|
||||||
mainWrapper: "justify-center items-center",
|
mainWrapper: "justify-center items-center",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user