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

experimental: add descendent component #3313

Merged
merged 3 commits into from
May 6, 2024
Merged

experimental: add descendent component #3313

merged 3 commits into from
May 6, 2024

Conversation

TrySound
Copy link
Member

@TrySound TrySound commented May 6, 2024

Ref #2903

Here added support for new <ws:descendent /> component. It allows to style any children or descendents of components. Primary usage is for embed content which renders html and need to style tags.

Descendent component accepts "selector" prop which can be suffix like img, .image or ::first-child pseudo-element.

Potentially it could be used as tag styling for any element.

Can be tested in any element by dropping "Descendent" component from "internal" category.

Ref #2903

Here added support for new `<ws:descendent />` component.
It allows to style any children or descendents of components.
Primary usage is for embed content which renders html and need
to style tags.

Descendent component accepts "selector" prop which can be suffix
like ` img`, ` .image` or `::first-child` pseudo-element.

Potentially it could be used as tag styling for any element.
@TrySound TrySound requested a review from kof May 6, 2024 13:48
@TrySound TrySound merged commit 305436f into main May 6, 2024
29 checks passed
@TrySound TrySound deleted the styles-scope branch May 6, 2024 19:36
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.

2 participants