fix: fixing preview tag style #3058
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What’s the purpose of this pull request?
This PR fixes the Preview tag styling when previews are shown in stores that use custom themes.
An example from a preview page in the
heringhomolog
account:Before
After
How it works
It replaces styles inherited from the
Badge
,Tag
, andIcon
components with scoped custom styles, preventing overrides by store-specific theme customizations.How to test
heringhomolog
store repository.heringhomolog
Content Platform, set the preview URL to your local build.faststore/core
package from this PR into the store, orNote: The preview tag is shown only on pages previewed from the Content Platform. This change doesn't apply to the preview flow for hCMS pages.
Starters Deploy Preview
References