Skip to content

Commit 8cbba01

Browse files
authored
Add deprecated pill to deprecated firewall config item (#318)
1 parent 507c4f8 commit 8cbba01

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

docs/config/firewall.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ enabling the built-in Nebula SSH server, you may wish to grant access over the N
140140
## firewall.default_local_cidr_any
141141

142142
<Pill className="mb-24">Default: False</Pill> <Pill className="mb-24">Reloadable</Pill>
143+
{/** children passed as prop to avoid MDX generating a paragraph inside Pill */}
144+
<Pill className="mb-24" variant="warning" children="Deprecated" />
143145

144146
This setting was introduced in Nebula v1.9.0 set to `true` for backwards compatibility purposes. The default was changed
145147
to `false` in Nebula v1.10.0 and the config option is now deprecated.

src/components/Pill/Pill.module.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,20 @@
55
font-weight: 600;
66
line-height: 1;
77
border-radius: 10rem;
8-
background-color: var(--ifm-color-emphasis-200);
98
padding: 4px 8px;
109

1110
&:global(.no-transform),
12-
& :global(.no-transform) {
11+
&:global(.no-transform) {
1312
text-transform: none;
1413
}
1514
}
1615

1716
.Pill___info {
1817
color: var(--ifm-color-secondary-contrast-foreground);
18+
background-color: var(--ifm-color-secondary-contrast-background);
19+
}
20+
21+
.Pill___warning {
22+
background-color: var(--ifm-color-warning-contrast-background);
23+
color: var(--ifm-color-warning-contrast-foreground);
1924
}

src/components/Pill/Pill.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import styles from './Pill.module.css';
44
type Props = {
55
children: React.ReactNode;
66
className?: string;
7-
variant?: 'info';
7+
variant?: 'info' | 'warning';
88
};
99

1010
export function Pill({ children, className, variant = 'info' }) {

0 commit comments

Comments
 (0)