From 7ac50a58c36f251ebdb7e4e6439831463beb1ce4 Mon Sep 17 00:00:00 2001 From: Brandy Smith <6577830+brandyscarney@users.noreply.github.com> Date: Fri, 13 Nov 2026 12:47:07 -0500 Subject: [PATCH 1/2] docs(badge): register icons in the JavaScript tab bar playground The JavaScript "Badges in Tab Buttons" example used ion-icon names without registering them, so StackBlitz fetched /svg/*.svg and the icons did not load. Split it into index.html and index.ts and register the icons with addIcons, matching the other JavaScript examples. Also remove unused javascript.md files from the reorder custom-icon and fab css-shadow-parts examples, which already load javascript/index_html.md and javascript/index_ts.md. --- .../usage/v8/badge/inside-tab-bar/index.mdx | 10 +++- .../index_html.md} | 0 .../inside-tab-bar/javascript/index_ts.md | 46 +++++++++++++++ .../theming/css-shadow-parts/javascript.md | 37 ------------ .../v8/reorder/custom-icon/javascript.md | 56 ------------------- .../usage/v9/badge/inside-tab-bar/index.mdx | 10 +++- .../index_html.md} | 0 .../inside-tab-bar/javascript/index_ts.md | 46 +++++++++++++++ .../theming/css-shadow-parts/javascript.md | 37 ------------ .../v9/reorder/custom-icon/javascript.md | 56 ------------------- 10 files changed, 108 insertions(+), 190 deletions(-) rename static/usage/v8/badge/inside-tab-bar/{javascript.md => javascript/index_html.md} (100%) create mode 100644 static/usage/v8/badge/inside-tab-bar/javascript/index_ts.md delete mode 100644 static/usage/v8/fab/theming/css-shadow-parts/javascript.md delete mode 100644 static/usage/v8/reorder/custom-icon/javascript.md rename static/usage/v9/badge/inside-tab-bar/{javascript.md => javascript/index_html.md} (100%) create mode 100644 static/usage/v9/badge/inside-tab-bar/javascript/index_ts.md delete mode 100644 static/usage/v9/fab/theming/css-shadow-parts/javascript.md delete mode 100644 static/usage/v9/reorder/custom-icon/javascript.md diff --git a/static/usage/v8/badge/inside-tab-bar/index.mdx b/static/usage/v8/badge/inside-tab-bar/index.mdx index 66e65779a9c..6ab7f81a3b5 100644 --- a/static/usage/v8/badge/inside-tab-bar/index.mdx +++ b/static/usage/v8/badge/inside-tab-bar/index.mdx @@ -1,6 +1,7 @@ import Playground from '@site/src/components/global/Playground'; -import javascript from './javascript.md'; +import javascript_index_html from './javascript/index_html.md'; +import javascript_index_ts from './javascript/index_ts.md'; import react from './react.md'; import vue from './vue.md'; @@ -10,7 +11,12 @@ import angular_example_component_ts from './angular/example_component_ts.md'; - ion-fab-button::part(native) { - background-color: #b7f399; - border-radius: 15px; - box-shadow: - 0px 1px 2px 0px rgba(0, 0, 0, 0.3), - 0px 1px 3px 1px rgba(0, 0, 0, 0.15); - color: black; - } - - ion-fab-button::part(native):hover::after { - background-color: #a3e681; - } - - ion-fab-button::part(native):active::after { - background-color: #87d361; - } - - - - - - - - - - - - - - - - - - -``` diff --git a/static/usage/v8/reorder/custom-icon/javascript.md b/static/usage/v8/reorder/custom-icon/javascript.md deleted file mode 100644 index 8535da7544a..00000000000 --- a/static/usage/v8/reorder/custom-icon/javascript.md +++ /dev/null @@ -1,56 +0,0 @@ -```html - - - - - Item 1 - - - - - - - Item 2 - - - - - - - Item 3 - - - - - - - Item 4 - - - - - - - Item 5 - - - - - - - - -``` diff --git a/static/usage/v9/badge/inside-tab-bar/index.mdx b/static/usage/v9/badge/inside-tab-bar/index.mdx index f76114f8483..bcfb30032c7 100644 --- a/static/usage/v9/badge/inside-tab-bar/index.mdx +++ b/static/usage/v9/badge/inside-tab-bar/index.mdx @@ -1,6 +1,7 @@ import Playground from '@site/src/components/global/Playground'; -import javascript from './javascript.md'; +import javascript_index_html from './javascript/index_html.md'; +import javascript_index_ts from './javascript/index_ts.md'; import react from './react.md'; import vue from './vue.md'; @@ -10,7 +11,12 @@ import angular_example_component_ts from './angular/example_component_ts.md'; - ion-fab-button::part(native) { - background-color: #b7f399; - border-radius: 15px; - box-shadow: - 0px 1px 2px 0px rgba(0, 0, 0, 0.3), - 0px 1px 3px 1px rgba(0, 0, 0, 0.15); - color: black; - } - - ion-fab-button::part(native):hover::after { - background-color: #a3e681; - } - - ion-fab-button::part(native):active::after { - background-color: #87d361; - } - - - - - - - - - - - - - - - - - - -``` diff --git a/static/usage/v9/reorder/custom-icon/javascript.md b/static/usage/v9/reorder/custom-icon/javascript.md deleted file mode 100644 index 8535da7544a..00000000000 --- a/static/usage/v9/reorder/custom-icon/javascript.md +++ /dev/null @@ -1,56 +0,0 @@ -```html - - - - - Item 1 - - - - - - - Item 2 - - - - - - - Item 3 - - - - - - - Item 4 - - - - - - - Item 5 - - - - - - - - -``` From a0a67b269b8805f9dd1dba55f58e4e80031d5099 Mon Sep 17 00:00:00 2001 From: Brandy Smith <6577830+brandyscarney@users.noreply.github.com> Date: Fri, 13 Nov 2026 12:50:13 -0500 Subject: [PATCH 2/2] style: add line breaks --- static/usage/v8/badge/inside-tab-bar/index.mdx | 1 + static/usage/v9/badge/inside-tab-bar/index.mdx | 1 + 2 files changed, 2 insertions(+) diff --git a/static/usage/v8/badge/inside-tab-bar/index.mdx b/static/usage/v8/badge/inside-tab-bar/index.mdx index 6ab7f81a3b5..f6cdf95a2d2 100644 --- a/static/usage/v8/badge/inside-tab-bar/index.mdx +++ b/static/usage/v8/badge/inside-tab-bar/index.mdx @@ -2,6 +2,7 @@ import Playground from '@site/src/components/global/Playground'; import javascript_index_html from './javascript/index_html.md'; import javascript_index_ts from './javascript/index_ts.md'; + import react from './react.md'; import vue from './vue.md'; diff --git a/static/usage/v9/badge/inside-tab-bar/index.mdx b/static/usage/v9/badge/inside-tab-bar/index.mdx index bcfb30032c7..671e4e9bfed 100644 --- a/static/usage/v9/badge/inside-tab-bar/index.mdx +++ b/static/usage/v9/badge/inside-tab-bar/index.mdx @@ -2,6 +2,7 @@ import Playground from '@site/src/components/global/Playground'; import javascript_index_html from './javascript/index_html.md'; import javascript_index_ts from './javascript/index_ts.md'; + import react from './react.md'; import vue from './vue.md';