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

fix: (CXSPA-9041) Popover directive HCT contrast #19835

Merged
merged 7 commits into from
Jan 10, 2025

Conversation

StanislavSukhanov
Copy link
Contributor

 * fixed a contrast of a contend displayed in popover when HCT is applied;

 * closes https://jira.tools.sap/browse/CXSPA-9041
@StanislavSukhanov StanislavSukhanov self-assigned this Jan 7, 2025
@StanislavSukhanov StanislavSukhanov requested a review from a team as a code owner January 7, 2025 12:34
@github-actions github-actions bot marked this pull request as draft January 7, 2025 12:34
@StanislavSukhanov StanislavSukhanov marked this pull request as ready for review January 7, 2025 12:36
 * fixed a contrast of a contend displayed in popover when HCT is applied;

 * closes https://jira.tools.sap/browse/CXSPA-9041
Copy link
Contributor

github-actions bot commented Jan 7, 2025

Merge Checks Failed

Please push a commit to re-trigger the build. 
To push an empty commit you can use `git commit --allow-empty -m "Trigger Build"`

@github-actions github-actions bot marked this pull request as draft January 7, 2025 12:37
@StanislavSukhanov StanislavSukhanov marked this pull request as ready for review January 7, 2025 12:38
Copy link

cypress bot commented Jan 7, 2025

spartacus    Run #46616

Run Properties:  status check passed Passed #46616  •  git commit 409cef31a3 ℹ️: Merge b7d942544f3459a50dce02f989e9b455e1aacf90 into f2ce01652f435e3bb1887adc8463...
Project spartacus
Branch Review feature/CXSPA-9041-HCT-popover-styling
Run status status check passed Passed #46616
Run duration 11m 23s
Commit git commit 409cef31a3 ℹ️: Merge b7d942544f3459a50dce02f989e9b455e1aacf90 into f2ce01652f435e3bb1887adc8463...
Committer Stanislav Sukhanov
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 3
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 125
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

@github-actions github-actions bot marked this pull request as draft January 8, 2025 08:23
@StanislavSukhanov StanislavSukhanov marked this pull request as ready for review January 8, 2025 08:23
@github-actions github-actions bot marked this pull request as draft January 8, 2025 08:48
@StanislavSukhanov StanislavSukhanov marked this pull request as ready for review January 8, 2025 10:16
)
? // we need to select first child element,
// otherwise HCT theming isn't getting picked up.
this.winRef.document.body.firstElementChild
Copy link
Contributor

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

Copy link
Contributor Author

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
@github-actions github-actions bot marked this pull request as draft January 9, 2025 08:13
@StanislavSukhanov StanislavSukhanov marked this pull request as ready for review January 9, 2025 08:19
@github-actions github-actions bot marked this pull request as draft January 10, 2025 10:16
@StanislavSukhanov StanislavSukhanov marked this pull request as ready for review January 10, 2025 10:16
@StanislavSukhanov StanislavSukhanov merged commit bf10fab into develop Jan 10, 2025
28 checks passed
@StanislavSukhanov StanislavSukhanov deleted the feature/CXSPA-9041-HCT-popover-styling branch January 10, 2025 12: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