Skip to content

Commit 4769fb3

Browse files
committed
chore: add themes to the core build workflow
1 parent 5f7ca9c commit 4769fb3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/actions/build-core-stencil-prerelease/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ runs:
2929
with:
3030
name: ionic-core
3131
output: core/CoreBuild.zip
32-
paths: core/dist core/components core/src/foundations core/css core/hydrate core/loader core/src/components.d.ts
32+
paths: core/dist core/components core/src/foundations core/css core/themes core/hydrate core/loader core/src/components.d.ts

core/scripts/testing/scripts.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@
4949
const paletteQuery = window.location.search.match(/palette=([a-z]+)/);
5050
const paletteName = paletteQuery?.[1] || 'light';
5151

52-
// Only attempt theme loading if not using CDN and theme is valid
52+
// Only attempt theme loading if the theme is valid
5353
if (themeName && ['ionic', 'ios', 'md'].includes(themeName)) {
5454
loadThemeTokens(themeName, paletteName);
5555
}
5656

5757
async function loadThemeTokens(themeName, paletteName) {
5858
try {
59-
// Load theme tokens
59+
// Load the default tokens for the theme
6060
const defaultTokens = await import(`/themes/${themeName}/default.tokens.js`);
61-
let theme = defaultTokens.defaultTheme;
61+
const theme = defaultTokens.defaultTheme;
6262

6363
// If a specific palette is requested, modify the palette structure
6464
// to set the enabled property to 'always'

0 commit comments

Comments
 (0)