diff --git a/workspaces/theme/.changeset/fix-sidebar-selected-overrides.md b/workspaces/theme/.changeset/fix-sidebar-selected-overrides.md deleted file mode 100644 index f6d532b0d13..00000000000 --- a/workspaces/theme/.changeset/fix-sidebar-selected-overrides.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@red-hat-developer-hub/backstage-plugin-theme': patch ---- - -fix(theme): use MUI theme overrides for sidebar selected states instead of class name selectors - -Replaced `class*=` CSS selectors with proper `styleOverrides.selected` on `BackstageSidebarItem` and `BackstageSidebarSubmenuItem`. The previous `class*=` approach failed in production where JSS minifies class names. diff --git a/workspaces/theme/.changeset/graduate-nfs-alpha-to-stable.md b/workspaces/theme/.changeset/graduate-nfs-alpha-to-stable.md deleted file mode 100644 index b48057a4bbb..00000000000 --- a/workspaces/theme/.changeset/graduate-nfs-alpha-to-stable.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@red-hat-developer-hub/backstage-plugin-theme': major ---- - -**BREAKING**: Graduated the New Frontend System (NFS) theme module to stable API. - -The NFS `rhdhThemeModule` has been promoted from the `./alpha` subpath to the primary `.` entry point. The `./alpha` subpath has been removed. Legacy (OFS) exports (`getThemes`, `getAllThemes`, `LogoFull`, `LogoIcon`, etc.) have been moved to the new `./legacy` subpath. - -**Migration for NFS consumers (previously using `./alpha`):** - -```diff -- import { rhdhThemeModule } from '@red-hat-developer-hub/backstage-plugin-theme/alpha'; -+ import { rhdhThemeModule } from '@red-hat-developer-hub/backstage-plugin-theme'; -``` - -**Migration for OFS consumers:** - -```diff -- import { getThemes, LogoFull } from '@red-hat-developer-hub/backstage-plugin-theme'; -+ import { getThemes, LogoFull } from '@red-hat-developer-hub/backstage-plugin-theme/legacy'; -``` diff --git a/workspaces/theme/plugins/theme/CHANGELOG.md b/workspaces/theme/plugins/theme/CHANGELOG.md index c04948c3fa5..444b5bb5325 100644 --- a/workspaces/theme/plugins/theme/CHANGELOG.md +++ b/workspaces/theme/plugins/theme/CHANGELOG.md @@ -1,5 +1,33 @@ # @red-hat-developer-hub/backstage-plugin-theme +## 1.0.0 + +### Major Changes + +- 1afcfdd: **BREAKING**: Graduated the New Frontend System (NFS) theme module to stable API. + + The NFS `rhdhThemeModule` has been promoted from the `./alpha` subpath to the primary `.` entry point. The `./alpha` subpath has been removed. Legacy (OFS) exports (`getThemes`, `getAllThemes`, `LogoFull`, `LogoIcon`, etc.) have been moved to the new `./legacy` subpath. + + **Migration for NFS consumers (previously using `./alpha`):** + + ```diff + - import { rhdhThemeModule } from '@red-hat-developer-hub/backstage-plugin-theme/alpha'; + + import { rhdhThemeModule } from '@red-hat-developer-hub/backstage-plugin-theme'; + ``` + + **Migration for OFS consumers:** + + ```diff + - import { getThemes, LogoFull } from '@red-hat-developer-hub/backstage-plugin-theme'; + + import { getThemes, LogoFull } from '@red-hat-developer-hub/backstage-plugin-theme/legacy'; + ``` + +### Patch Changes + +- 10af16d: fix(theme): use MUI theme overrides for sidebar selected states instead of class name selectors + + Replaced `class*=` CSS selectors with proper `styleOverrides.selected` on `BackstageSidebarItem` and `BackstageSidebarSubmenuItem`. The previous `class*=` approach failed in production where JSS minifies class names. + ## 0.15.0 ### Minor Changes diff --git a/workspaces/theme/plugins/theme/package.json b/workspaces/theme/plugins/theme/package.json index 1a91941896e..3972ef1f8c6 100644 --- a/workspaces/theme/plugins/theme/package.json +++ b/workspaces/theme/plugins/theme/package.json @@ -1,6 +1,6 @@ { "name": "@red-hat-developer-hub/backstage-plugin-theme", - "version": "0.15.0", + "version": "1.0.0", "description": "Red Hat Developer Hub Theme", "main": "src/index.ts", "types": "src/index.ts",