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

Fixed a CSS error in Adobe Target move and resize actions #1207

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

dpopescu
Copy link
Contributor

@dpopescu dpopescu commented Oct 31, 2024

Personalization move action is not taking into account values that come from the edge server and are not properly formatted.

A valid css value would be left: 400px; but the edge server sends only the numerical value resulting into an invalid css value and the move action failes.

Description

Appends "px" string if required to the coordinates for the move action.

Motivation and Context

Broken personalization for the move action.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (non-breaking change which does not add functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA or I'm an Adobe employee.
  • I have made any necessary test changes and all tests pass.
  • I have run the Sandbox successfully.

@dpopescu
Copy link
Contributor Author

Thanks @ninaceban. I've updated the code with your suggestions.

Copy link
Contributor

@jonsnyder jonsnyder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the quick turn-around on this issue.

src/components/Personalization/dom-actions/dom/util.js Outdated Show resolved Hide resolved
@jonsnyder jonsnyder merged commit 5729129 into adobe:main Oct 31, 2024
3 of 5 checks passed
@jonsnyder jonsnyder changed the title [PDCL-12744] Implement move action Fixed a CSS error in Adobe Target move and resize actions Oct 31, 2024
@dpopescu dpopescu deleted the PDCL-12744 branch November 5, 2024 09:57
ramboz pushed a commit to ramboz/alloy that referenced this pull request Nov 7, 2024
* [PDCL-12744] Implement move action

* Coerce css value to string before calling endsWith

---------

Co-authored-by: jonsnyder <[email protected]>
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.

4 participants