I am working with an input field that has a specific width set. My goal is to increase the width of this input field to 100%
by selecting it from its parent component. Is there a way to achieve this without passing an explicit width prop in the styled component
?
I attempted to replicate this scenario in this sandbox. In the sandbox, I initially set the input box width to 100px
and then tried changing it using CSS selectors within the parent component. Unfortunately, my attempts were unsuccessful based on the following code snippet-
& > input {
width: 100% !important;
}