Skip to content

Bug in "_sections.less" mixins: missing rules and incorrect default variables #18729

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

Closed
dmytro-ch opened this issue Oct 21, 2018 · 3 comments
Closed
Assignees
Labels
Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release

Comments

@dmytro-ch
Copy link
Contributor

dmytro-ch commented Oct 21, 2018

There are couple of issues when trying to use mixins for "tabs" and "accordion" components.

The issue is related to lib/web/css/source/lib/_sections.less.
The default variables are predefined in lib/web/css/source/lib/variables/_sections.less.

Summary (*)

When you try to customize the view of "tabs" and "accordion" components by redefining the default variables in the scope of a custom theme, the following issues appear:

  1. The text color for active "accordion" control is not applied.
  2. The text-decoration for active control is not working for both "accordion" and "tabs" components.
  3. There are also incorrectly defined default variables for mixins. (e.g. accordion control visited and tab control hover variables etc.).

Examples (*)

Let's try to define the following variables in the scope of a custom theme.

@tab-control__active__background-color: yellow;
@tab-control__active__color: red;
@tab-control__active__text-decoration: underline;

Assuming that those variables are not defined elsewhere (in the scope of current or parent theme) except the default lib variables file lib/web/css/source/lib/variables/_sections.less.

Expected Result

There are red color, yellow background and underline text decoration applied for both accordion and tabs active controls.

screen shot 2018-10-21 at 8 41 00 pm

screen shot 2018-10-21 at 8 52 33 pm

Actual Result

The red color is not applied accordion active controls.
The underline text decoration is not apllied for both accordion and tabs active controls.

screen shot 2018-10-21 at 9 01 22 pm

screen shot 2018-10-21 at 9 00 35 pm

Proposed solution

Add missing rules to lib/web/css/source/lib/_sections.less and change the default variable names to the correct ones.

@dmytro-ch dmytro-ch self-assigned this Oct 21, 2018
@magento-engcom-team magento-engcom-team added the Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed label Oct 21, 2018
@magento-engcom-team
Copy link
Contributor

magento-engcom-team commented Oct 21, 2018

Hi @dmytro-ch. Thank you for your report.
To help us process this issue please make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento-engcom-team give me $VERSION instance

where $VERSION is version tags (starting from 2.2.0+) or develop branches (for example: 2.3-develop).
For more details, please, review the Magento Contributor Assistant documentation.

@dmytro-ch do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?

  • yes
  • no

@magento-engcom-team magento-engcom-team added Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed and removed Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed labels Oct 21, 2018
dmytro-ch added a commit to dmytro-ch/magento2 that referenced this issue Oct 21, 2018
@dmytro-ch dmytro-ch added Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release labels Oct 21, 2018
@sidolov sidolov added the Fixed in 2.3.x The issue has been fixed in 2.3 release line label Oct 27, 2018
@sidolov
Copy link
Contributor

sidolov commented Oct 27, 2018

Hi @dmytro-ch. Thank you for your report.
The issue has been fixed in #18730 by @dmytro-ch in 2.3-develop branch
Related commit(s):

The fix will be available with the upcoming 2.3.1 release.

@magento-engcom-team
Copy link
Contributor

Hi @dmytro-ch. Thank you for your report.
The issue has been fixed in #18875 by @gelanivishal in 2.2-develop branch
Related commit(s):

The fix will be available with the upcoming 2.2.8 release.

@magento-engcom-team magento-engcom-team added the Fixed in 2.2.x The issue has been fixed in 2.2 release line label Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

No branches or pull requests

3 participants