-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Area: UI FrameworkComponent: CssComponent: DeployIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P2A defect with this priority could have functionality issues which are not to expectations.A defect with this priority could have functionality issues which are not to expectations.Progress: doneReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseThe issue has been reproduced on latest 2.3 releaseReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branchSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.Major restrictions or short-term circumventions are required until a fix is available.Triage: DoneHas been reviewed and prioritized during Triage with Product ManagersHas been reviewed and prioritized during Triage with Product Managers
Milestone
Description
Summary (*)
- Original summary from the reporter :
I disable module output for several modules (e.g Checkout, GiftRegestry) and would like to know how to exclude CSS related to these modules from styles-l/styles-m files? As I don't need to load extra CSS
Preconditions (*)
- reproduced on
2.3-develop
Steps to reproduce (*)
- Setup vanilla 2.3-develop installation
- Take a look at the file
app/design/frontend/Magento/blank/Magento_Braintree/web/css/source/_module.less
, notice the selector.payment-method-braintree
is in there and also notice this selector is in no other file in the Magento source code except for this file in theMagento_Braintree
module in the
Magento/Blank
theme. - Now disable that module (and its dependency):
bin/magento module:disable Magento_Braintree Magento_BraintreeGraphQl
- Remove potential left over files:
rm -R var/view_preprocessed/* pub/static/*
- Run static content deploy:
bin/magento setup:static-content:deploy -f --theme Magento/blank en_US
- Look at the generated file
pub/static/frontend/Magento/blank/en_US/css/styles-m.css
Expected result (*)
- Not finding a reference to the selector
.payment-method-braintree
Actual result (*)
- Finding references to the selector
.payment-method-braintree
Update: In hindsight, @shkodasv is talking about the deprecated "disabling module output" feature of Magento which was removed in Magento 2.2 I believe. But the issue is still valid for disabled modules as well, or should we open a new issue then?
denistrator and cfman
Metadata
Metadata
Assignees
Labels
Area: UI FrameworkComponent: CssComponent: DeployIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P2A defect with this priority could have functionality issues which are not to expectations.A defect with this priority could have functionality issues which are not to expectations.Progress: doneReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseThe issue has been reproduced on latest 2.3 releaseReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branchSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.Major restrictions or short-term circumventions are required until a fix is available.Triage: DoneHas been reviewed and prioritized during Triage with Product ManagersHas been reviewed and prioritized during Triage with Product Managers
Type
Projects
Status
Done