I am currently working on a coding project that involves a parent component and multiple child components. My main goal is to adjust the position of a filter icon by moving it down 5 pixels on one specific child component. The issue I am facing is that no matter what CSS code I input into the child component, it does not seem to have any effect. If I try adding the following CSS code snippet into the parent component, it successfully modifies the child component as intended, but unfortunately also impacts other components in the process:
:host /deep/ svg-icon.filterIcon {
height: 22px !important;
padding-top: 5px !important;
}
When attempting to use this same code within the child component I want to style, it doesn't produce any changes. Likewise, using the following CSS code results in no visible adjustments either:
svg-icon.filterIcon {
height: 22px !important;
padding-top: 5px !important;
}
My question now is, how can I apply styling specifically to this one child component without affecting the others?