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

LPS-115485 As a developer I can inject custom CSS variables declaring an OSGi component #90496

Conversation

liferay-continuous-integration
Copy link
Collaborator

Forwarded from: liferay-frontend#21 (Took 1 ci:forward attempt in 4 minutes)

@izaera
@liferay-frontend

Original pull request comment:
Previously: https://github.com/wincent/liferay-portal/pull/354

Moving it here and will try to get a green ci:test:relevant run out of it.

cc @izaera

Original description follows:


This is a partial PR based on the original PoC https://github.com/jbalsas/liferay-portal/pull/2211. This implements the Frontend Infrastructure DynamicInclude part only, and provides tests for it.

Note that there's no way to test this from the GUI.


⚠️ This IMPORTANT CONVERSATION arised in the original PR, but because it is relevant I'm linking it here.

✔️ ci:test:sf - 1 out of 1 jobs passed in 3 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: ee8af6d3c052b2e98f267e2ca397582fa816f1a7

Sender Branch:

Branch Name: LPS-115485
Branch GIT ID: 248e439a6eda313be4666ef7a416c781ad5d97a5

1 out of 1jobs PASSED
1 Successful Jobs:
For more details click here.

✔️ ci:test:stable - 20 out of 20 jobs passed

✔️ ci:test:relevant - 49 out of 49 jobs passed in 1 hour 23 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: d7b659d0c9f0278aae1e7b580e59e6ce90ffb59d

Copied in Private Modules Branch:

Branch Name: master-private
Branch GIT ID: 1eb935eac6911217dfe48eb2379d11fb23dd7f33

ci:test:stable - 20 out of 20 jobs PASSED
20 Successful Jobs:
ci:test:relevant - 49 out of 49 jobs PASSED
49 Successful Jobs:
For more details click here.

…lues

All instances of ScopedCSSVariablesProvider will be queried whenever a
page's HTML is rendered to gather all the ScopedCSSVariables that must
be injected in the page.

A ScopedCSSVariables object defines a set of CSS variable values tied to
a given CSS scope (f.e: :root, body, etc...)
…viders

This DynamicInclude renders all ScopedCSSVariables in the <head> tag of
the page's HTML right after the theme's CSS links are injected.
@liferay-continuous-integration
Copy link
Collaborator Author

To conserve resources, the PR Tester does not automatically run for forwarded pull requests.

@brianchandotcom
Copy link
Owner

Merged. Thank you.
View total diff: c27f227...1bc3715

@brianchandotcom
Copy link
Owner

Wow @izaera very nice. No changes in Java for me.

modules/apps/frontend-css/frontend-css-variables-web/src/test/resources/com/liferay/frontend/css/variables/web/internal/servlet/taglib/liferay_css_variables_1.html

Can we indent the CSS in the HTML or is the bad formatting on purpose? Please send a follow up pull if we can indent.

@liferay-continuous-integration liferay-continuous-integration deleted the ci-forward-LPS-115485-pr-21-sender-izaera-ts-1592905162235 branch June 30, 2020 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants