-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs site supports docs for unstable APIs (#2344)
- Loading branch information
1 parent
63d8605
commit 0d9927f
Showing
7 changed files
with
67 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<div {...Astro.props}> | ||
<slot name='icon' /> | ||
<slot name='content' /> | ||
</div> | ||
|
||
<style lang='scss'> | ||
@layer components { | ||
div { | ||
display: flex; | ||
align-items: center; | ||
gap: var(--space-3); | ||
padding: var(--space-3); | ||
border: solid 1px var(--color-highlight-2); | ||
border-radius: var(--border-radius-1); | ||
|
||
p { | ||
color: var(--color-text); | ||
} | ||
|
||
svg { | ||
color: var(--color-highlight-2); | ||
height: var(--space-8); | ||
width: var(--space-8); | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
import WarningIcon from '~/icons/WarningIcon.astro'; | ||
import DocsNoteCard from './DocsNoteCard.astro'; | ||
const feedbackUrl = 'https://github.com/iTwin/iTwinUI/discussions/new?category=feedback'; | ||
--- | ||
|
||
<DocsNoteCard {...Astro.props}> | ||
<WarningIcon aria-hidden='true' slot='icon' /> | ||
<p slot='content'> | ||
<strong>Unstable</strong>: This component is marked unstable to help us gather <a | ||
href={feedbackUrl}>feedback</a | ||
> and improve it. Thus, there could be future breaking changes to this component. | ||
</p> | ||
</DocsNoteCard> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 16 16' {...Astro.props}> | ||
<path | ||
fill='currentColor' | ||
d='M15.868 13.267l-6.77-11.62a1.15 1.15 0 00-1.1-.67 1.17 1.17 0 00-1.1.69l-6.77 11.59a1.2 1.2 0 001.1 1.72h13.45a1.19 1.19 0 001.19-1.71zm-6.87-.29h-2v-2h2zm0-3h-2v-5h2z' | ||
></path> | ||
</svg> |