Skip to content

Commit 9108d77

Browse files
committed
convert to TSX, shade tweak, use new admonition in one more fragment
1 parent 07f6b82 commit 9108d77

7 files changed

Lines changed: 10 additions & 11 deletions

File tree

docs/_experimental-channel-api-warning.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:::tip[Experimental Feature 🧪]
1+
:::important[Experimental Feature 🧪]
22

33
**This API is currently only available in React Native’s Experimental channels.**
44

website/src/css/customTheme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,11 +673,11 @@ html[data-theme="dark"] article .badge {
673673

674674
html[data-theme="dark"] {
675675
span[class^="admonitionIcon"] svg {
676-
fill: hsl(from var(--ifm-alert-border-color) h calc(s + 10) calc(l + 10));
676+
fill: hsl(from var(--ifm-alert-border-color) h calc(s - 10) calc(l + 10));
677677
}
678678

679679
div[class^="admonitionHeading"] {
680-
color: hsl(from var(--ifm-alert-border-color) h calc(s + 10) calc(l + 10));
680+
color: hsl(from var(--ifm-alert-border-color) h calc(s - 10) calc(l + 10));
681681
}
682682

683683
.alert--secondary {
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import React from 'react';
22
import clsx from 'clsx';
33
import DefaultAdmonitionTypes from '@theme-original/Admonition/Types';
4+
import type {Props} from '@theme/Admonition';
45

56
const {info: Info} = DefaultAdmonitionTypes;
67

7-
function ImportantAdmonition({ className, ...rest }) {
8-
return (
9-
<Info className={clsx(className, 'alert--important')} {...rest} />
10-
);
8+
function ImportantAdmonition({className, ...rest}: Props) {
9+
return <Info className={clsx(className, 'alert--important')} {...rest} />;
1110
}
1211

1312
const AdmonitionTypes = {

website/versioned_docs/version-0.82/_experimental-channel-api-warning.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:::tip[Experimental Feature 🧪]
1+
:::important[Experimental Feature 🧪]
22

33
**This API is currently only available in React Native’s Experimental channels.**
44

website/versioned_docs/version-0.83/_experimental-channel-api-warning.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:::tip[Experimental Feature 🧪]
1+
:::important[Experimental Feature 🧪]
22

33
**This API is currently only available in React Native’s Experimental channels.**
44

website/versioned_docs/version-0.84/_experimental-channel-api-warning.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:::tip[Experimental Feature 🧪]
1+
:::important[Experimental Feature 🧪]
22

33
**This API is currently only available in React Native’s Experimental channels.**
44

website/versioned_docs/version-0.85/_experimental-channel-api-warning.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:::tip[Experimental Feature 🧪]
1+
:::important[Experimental Feature 🧪]
22

33
**This API is currently only available in React Native’s Experimental channels.**
44

0 commit comments

Comments
 (0)