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

feat: experimental polyfill for ::part API #609

Closed
wants to merge 9 commits into from
Closed

Conversation

pskelin
Copy link
Contributor

@pskelin pskelin commented Jul 2, 2019

No description provided.

pskelin and others added 7 commits May 13, 2019 10:46
- all styles should be in a style tag with attribute data-ui5-parts-styles
- new module introduced @ui5/webcomponents-base/src/shadowparts/ShadowPartsPolyfill
- applyTransformation should be called once the style tag content is rendered
- initial style rules that are supported are:
  - __component_tag__(id|class)::part(part_name) - e.g. ui5-card.online::part(status) {}
@MapTo0 MapTo0 marked this pull request as ready for review July 4, 2019 11:20
@MapTo0 MapTo0 changed the title wip feat: experimental polyfill for ::part API Jul 4, 2019
@MapTo0
Copy link
Member

MapTo0 commented Jul 4, 2019

  • all styles should be in a style tag with attribute data-ui5-parts-styles
  • new module introduced @ui5/webcomponents-base/dist/shadowparts/ShadowPartsPolyfill
  • applyTransformation should be called once the style tag content is rendered
  • initial style rules that are supported are:
    • component_tag(id|class)::part(part_name) - e.g. ui5-card.online::part(status) {}

@pskelin
Copy link
Contributor Author

pskelin commented Jul 4, 2019

why not apply the transformation automatically and have a requirement that the styles are defined before the script tag? The method can also stay for fine-tuning different use cases, but the main one should be as simple as possible.

@pskelin pskelin closed this Oct 14, 2019
@ilhan007 ilhan007 deleted the wip-css-parts branch June 2, 2022 19:37
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