-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Page Builder module has very broad slider css rule that overrides all buttons on the site #34527
Comments
Hi @mzenner1. Thank you for your report.
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hello @mzenner1, Thank you for your report. To speed up the processing of this issue, please provide us with the following information:
Thanks |
The initial comment has all the relevant details needed to troubleshoot the issue. It's just a matter of a stray "a.button" in a LESS file that is not nested inside a page builder element. As a result, this line of css affects all buttons on a whole website, not just page builder pieces |
Hi @mzenner1, I understood your reference after checking the less file which you referred to in the description. So based on it, can you please below additional details:
Accordingly, I’ll proceed with this issue. Thanks |
a.button { The rule in question in above. The example of how this will affect a website is that it will now adding a 10 pixel padding to all a.button instances on the whole website. The purpose of that file though is to give page builder slider pieces some basic styling. This rule does not just apply to page builder sliders though. It applies to everything. My original post on this thread has the proposed solution to apply this to just page builder slider pieces |
Hi @engcom-Echo. Thank you for working on this issue.
|
Hi @mzenner1, Thank you for your input. But I am not able to find any affect of Page Builder module on the website storefront or in any of the button as you suggested. Neither I am able to find 10px padding in any button after adding Page Builder button changes. I need to reproduce this issue if I want to confirm it. So can you please share more details like video of the issue happening if not screenshots which can help me in reproducing this ? Thanks |
Attached is a screenshot of the issue. Using a standard anchor tag with a class of "button" has some of its css rules wiped out/overridden by the broad page builder css rule of "a.button" This is not part of any page builder piece. It's a custom phtml file loaded on the home page but it is being affected by the page builder css. |
Hi @mzenner1, Thank you for providing this info. Verified the issue and issue is reproducible on 2.4-develop with Page Builder Module. Below are the steps I did to reproduce this:
This css was meant only for Page Builder Slider but it is affecting all other css element with anchor tag and class button, so confirming this issue. Thanks |
✅ Jira issue https://jira.corp.magento.com/browse/AC-2074 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Echo. Thank you for verifying the issue. |
Summary (*)
vendor/magento/module-page-builder/view/frontend/web/css/source/content-type/slider/_default.less
This file has an un-nested less rule for "a.button" which conflicts with all anchor tags with a class of button on an entire website (not limited to just page builder pieces).
Examples (*)
Line is highlighted below
& when (@media-common = true) {
div[data-content-type='slider'] {
visibility: hidden;
}
Proposed solution
Proposed solution is to only apply this line if the button is actually within a page builder slider template piece. See below:
& when (@media-common = true) {
div[data-content-type='slider'] {
visibility: hidden;
}
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: