Skip to content

Conversation

amol2jcommerce
Copy link
Contributor

Original Pull Request

#10655

Description

Before the fix, classes with -- in them was replaced with a single - so result with input class--1 appears as class-1, breaking the BEM convention.

Fixed Issues

  1. Adding BEM class in XML via attribute tag causes class to be rewritten #10645: Adding BEM class in XML via attribute tag causes class to be rewritten

Manual testing scenarios

  1. Go to default.xml
  2. Add attribute tag with a class to the body element i.e. <attribute name="class" value="class--1" />
  3. Clear cache and reload page

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-engcom-team
Copy link
Contributor

Hi @amol2jcommerce. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me 2.2-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@dmytro-ch dmytro-ch self-requested a review March 17, 2019 08:18
@dmytro-ch dmytro-ch self-assigned this Mar 17, 2019
@dmytro-ch dmytro-ch changed the title [Forwardport] Issue #10645 - Allow BEM class via attribute tag. Public [Backport] Issue #10645 - Allow BEM class via attribute tag. Public Mar 17, 2019
@dmytro-ch dmytro-ch added the Port label Mar 17, 2019
@magento-engcom-team
Copy link
Contributor

Hi @dmytro-ch, thank you for the review.
ENGCOM-4516 has been created to process this Pull Request

@VasylShvorak
Copy link
Contributor

✔️ QA passed

@ghost
Copy link

ghost commented Mar 20, 2019

Hi @amol2jcommerce, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

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.

5 participants