Skip to content

Commit

Permalink
Remove page title beta badge from Emotion utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Sep 20, 2024
1 parent 6bbfad7 commit 21c7470
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,15 @@ export const GuideTabbedPage: FunctionComponent<GuideTabbedPageProps> = ({
const currentLanguage = themeContext.themeLanguage;
const showSass = currentLanguage.includes('sass');

const headerBadge =
isBeta || (showThemeLanguageToggle && !showSass) ? (
<EuiBetaBadge
label="Beta"
color="accent"
tooltipContent="This component is still under development and may contain breaking changes in the nearby future."
/>
) : isNew ? (
<EuiBetaBadge label="New" color="accent" />
) : undefined;
const headerBadge = isBeta ? (
<EuiBetaBadge
label="Beta"
color="accent"
tooltipContent="This component is still under development and may contain breaking changes in the nearby future."
/>
) : isNew ? (
<EuiBetaBadge label="New" color="accent" />
) : undefined;

let tabs:
| Array<{
Expand Down
1 change: 0 additions & 1 deletion packages/eui/src-docs/src/views/theme/borders/borders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export default () => {
return (
<GuideTabbedPage
title="Borders"
isBeta={!showSass}
notice={<ThemeNotice />}
description="The border tokens contain both individual border property values and full shorthand border properties."
showThemeLanguageToggle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export default () => {
return (
<EuiThemeProvider modify={overrides}>
<GuideTabbedPage
isBeta
title="Customizing theme"
notice={<ThemeNotice />}
showThemeLanguageToggle
Expand Down
1 change: 0 additions & 1 deletion packages/eui/src-docs/src/views/theme/other/other.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ export default () => {
return (
<GuideTabbedPage
title="More tokens"
isBeta={!showSass}
notice={<ThemeNotice />}
showThemeLanguageToggle
description="Here are a few more global theme tokens for styles we use throughout EUI."
Expand Down

0 comments on commit 21c7470

Please sign in to comment.