magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.58k stars 9.32k forks source link

CSS Not working properly for filterInput on Ui Component Grid #31743

Closed TheRealHunzik closed 3 years ago

TheRealHunzik commented 3 years ago

Summary (*)

I want to Add Only Filter in Order Grid Filters Function is Working Fine But CSS is Not working

Examples (*)

I want to Add Column Like this

likeSample

so i tired something like that in

Vendor/Module/view/adminhtml/ui_component/sales_order.grid.xml

<?xml version="1.0" encoding="UTF-8"?>
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <container name="listing_top">
             <filters name="listing_filters" displayArea="dataGridFilters">
                 <settings>
                    <dataScope>filters</dataScope>
                 </settings>
                 <filterInput
                     name="custom_column"
                     provider="${ $.parentName }"
                     sortOrder="70" >
                     <settings>
                         <label translate="true">Custom Column</label>
                         <dataScope>custom_column</dataScope>
                     </settings>
                 </filterInput>
    </container>
</listing>
.

but I am getting something like that

screenshot-local kipling com-2021 01 18-17_17_23

Proposed solution


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

m2-assistant[bot] commented 3 years ago

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

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 give me 2.4-develop instance - upcoming 2.4.x release

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

Please, add a comment to assign the issue: @magento I am working on this


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions!

MarianNapi commented 4 months ago

But...Wtf?

This shit is still happening in newer Versions of Magento - So can someone PLEASE look into this crap?

Quickfix:

Vendor/Module/view/adminhtml/web/css/styles.css

.admin__field-label {
    text-align: left;
    font-weight: bold !important;
    font-size: 13px !important;
    line-height: 1.36 !important;
    margin-bottom: 3px !important;
}

then in Vendor/Module/view/adminhtml/layout/path1_path2_index.xml

<update handle="styles"/>
<head>
     <css src="Vendor_Module::css/styles.css"/>
</head>