Skip to content

Commit a4eff85

Browse files
Add added version
1 parent af67663 commit a4eff85

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

site/src/content/docs/components/alerts.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ toc: true
88
types:
99
- Alert message
1010
- Inline alert
11+
added:
12+
version: "1.1"
1113
---
1214

1315
import { getVersionedDocsPath } from '@libs/path'
@@ -548,7 +550,7 @@ To display a [bullet list]([[docsref:/components/bullet-list]]) below the alert
548550

549551
Here are some examples with everything activated and some long texts to see how it should behave. Please note that there are some `max-width` on the texts.
550552

551-
<Example class="d-flex flex-column gap-medium" code={`<div class="alert alert-message alert-warning">
553+
<Example buttonLabel="alert message with much text" class="d-flex flex-column gap-medium" code={`<div class="alert alert-message alert-warning">
552554
<div class="alert-icon"><p class="visually-hidden">Warning alert</p></div>
553555
<div class="alert-container">
554556
<div class="alert-text-container">
@@ -606,7 +608,7 @@ Using the alert plugin, it’s possible to dismiss any alert message, here’s h
606608

607609
Click the button below to show an alert (hidden with inline styles to start), then dismiss (and destroy) it with the built-in close button.
608610

609-
<Example addStackblitzJs code={`<div id="liveAlertPlaceholder" role="status" class="use-rounded-corner-alert d-flex flex-column gap-medium mb-medium">
611+
<Example buttonLabel="alert message with live behavior" addStackblitzJs code={`<div id="liveAlertPlaceholder" role="status" class="use-rounded-corner-alert d-flex flex-column gap-medium mb-medium">
610612
<div class="alert alert-message alert-positive">
611613
<div class="alert-icon"></div>
612614
<div class="alert-container">

site/src/layouts/DocsLayout.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ const multipleComponents = componentsVersions.length > 1 ? 's' : ''
7474
<main class="bd-main order-1">
7575
<div class="bd-intro pt-small ps-lg-small">
7676
<div class="d-md-flex flex-md-row-reverse align-items-center justify-content-between">
77-
<div class="mb-large mb-md-none d-flex text-nowrap">
77+
<div class="mb-large mb-md-none d-flex gap-small align-items-center text-nowrap">
7878
{
7979
// This is needed because we want to show the badge if show_badge isn't present or is set to false
8080
frontmatter.added &&
8181
((frontmatter.added.show_badge !== undefined && frontmatter.added.show_badge === true) ||
8282
frontmatter.added.show_badge === undefined) && (
83-
<p class="mb-none me-small">
83+
<p class="mb-none">
8484
<span class="tag tag-small">Added in v{frontmatter.added.version}</span>
8585
</p>
8686
)

0 commit comments

Comments
 (0)