Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support stylesheets for BYOC Unwrapped and SXA Components #1722

Merged
merged 12 commits into from
Jan 26, 2024
Merged

Conversation

yavorsk
Copy link
Collaborator

@yavorsk yavorsk commented Jan 23, 2024

Description / Motivation

Adding support for loading appropriate stylesheets whenever a theme is applied to BYOC and SXA components (built on top of #1587 ).
This PR introduces new function getComponentLibraryStylesheetLinks, which replaces getFEAASLibraryStylesheetLinks (which is marked as deprecated) and supports FEAAS, BYOC and SXA components;

Testing Details

  • Unit Test Added
  • Manual Test/Other (Please elaborate) Test if stylesheet files are loaded properly when adding themes to BYOC and SXA components in xmcloud

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@yavorsk yavorsk changed the title Support stylesheets for BYOC Unwrapped and SXA Components [templates/nextjs-xmcloud] [sitecore-jss] Support stylesheets for BYOC Unwrapped and SXA Components Jan 24, 2024
@yavorsk yavorsk changed the title [templates/nextjs-xmcloud] [sitecore-jss] Support stylesheets for BYOC Unwrapped and SXA Components Support stylesheets for BYOC Unwrapped and SXA Components Jan 24, 2024
Copy link
Contributor

@illiakovalenko illiakovalenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! 👍
See few comments below

packages/sitecore-jss/src/feaas/themes.ts Outdated Show resolved Hide resolved
packages/sitecore-jss/styles.d.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@illiakovalenko illiakovalenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! 👍

CHANGELOG.md Outdated Show resolved Hide resolved
@yavorsk yavorsk merged commit 6f1d5de into dev Jan 26, 2024
1 check passed
@yavorsk yavorsk deleted the feature/JSS-1391 branch January 26, 2024 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants