Skip to content

Commit 0858a9a

Browse files
committed
fix Alert title vertical spacing
1 parent dca6a0c commit 0858a9a

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

docs/working-notes/todo3.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,5 +421,6 @@ improve lighthouse, accessibility, aria attrs
421421
2 prerendered paginations, 3 and 5 items
422422
must export_ vars in .mdx or acor error, ask?
423423
define color themes
424+
:where() selector in my-prose not completely bypassing not-prose
424425
```
425426

src/pages/design/components.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,8 @@ export const alerts = {
4040
</div>
4141
</>
4242
))}
43+
44+
#### title="My title"
45+
46+
<Alert title="My title">Some text</Alert>
47+

src/pages/design/styleguide.mdx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -208,33 +208,23 @@ Most <mark>salamanders</mark> are <del>nighttime</del> nocturnal, and hunt for i
208208
## Alerts
209209

210210
<Alert variant="note">
211-
212211
This is a note.
213-
214212
</Alert>
215213

216214
<Alert variant="info">
217-
218215
This is some extra info.
219-
220216
</Alert>
221217

222218
<Alert variant="tip">
223-
224219
There’s probably a hot tip here.
225-
226220
</Alert>
227221

228222
<Alert variant="warning">
229-
230223
You should heed this warning.
231-
232224
</Alert>
233225

234226
<Alert variant="danger">
235-
236227
A bit more serious than a warning.
237-
238228
</Alert>
239229

240230
## YouTube

src/styles/components/alert.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
}
2727

2828
.alert__title {
29-
@apply flex items-center gap-1 mt-2;
29+
/* <p> has line-height: 1.7, h4 needs higher mt-1 */
30+
@apply flex items-center gap-1 mt-1;
3031
}
3132
.alert__title--note {
3233
@apply text-slate-900 dark:text-slate-100;

0 commit comments

Comments
 (0)