-
Notifications
You must be signed in to change notification settings - Fork 393
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
fix: (CXSPA-9041) Popover directive HCT contrast #19835
fix: (CXSPA-9041) Popover directive HCT contrast #19835
Conversation
* fixed a contrast of a contend displayed in popover when HCT is applied; * closes https://jira.tools.sap/browse/CXSPA-9041
* fixed a contrast of a contend displayed in popover when HCT is applied; * closes https://jira.tools.sap/browse/CXSPA-9041
Merge Checks Failed
|
spartacus Run #46616
Run Properties:
|
Project |
spartacus
|
Branch Review |
feature/CXSPA-9041-HCT-popover-styling
|
Run status |
Passed #46616
|
Run duration | 11m 23s |
Commit |
409cef31a3 ℹ️: Merge b7d942544f3459a50dce02f989e9b455e1aacf90 into f2ce01652f435e3bb1887adc8463...
|
Committer | Stanislav Sukhanov |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
3
|
Pending |
2
|
Skipped |
0
|
Passing |
125
|
Upgrade your plan to view test results. | |
View all changes introduced in this branch ↗︎ |
) | ||
? // we need to select first child element, | ||
// otherwise HCT theming isn't getting picked up. | ||
this.winRef.document.body.firstElementChild |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should let this fall back to body in case firstElementChild
isn't found for whatever reason. SSR and non-ssr spartacus builds and installations can be a bit inconsistent with their DOM structures immediately after the body tag (eg. sometimes app-root
is not added to the DOM).
Fallback example:
this.winRef.document.body.firstElementChild ?? this.winRef.document.body
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for your comment. it's fixed
* fixed a contrast of a contend displayed in popover when HCT is applied; * closes https://jira.tools.sap/browse/CXSPA-9041
…tyling' into feature/CXSPA-9041-HCT-popover-styling
fixed a contrast of a contend displayed in popover when HCT is applied;
closes https://jira.tools.sap/browse/CXSPA-9041