Add a new Notice component

This commit is contained in:
Philipp Stracker 2025-05-13 12:35:43 +02:00
parent 7abf075087
commit 4bb2b1a9b5
No known key found for this signature in database
3 changed files with 38 additions and 0 deletions

View file

@ -69,3 +69,23 @@
margin-top: var(--block-action-gap, 16px);
}
}
.ppcp--notice {
display: block;
padding: 10px;
margin: 10px 0;
line-height: 1.5714285714;
font-size: 0.8125rem;
background: var(--notice-background);
color: var(--notice-text);
&.type--info {
--notice-background: var(--color-success-background);
--notice-text: var(--color-success-text);
}
&.type--error {
--notice-background: var(--color-failure-background);
--notice-text: var(--color-failure-text);
}
}