Closed danparnella closed 3 years ago
I was able to convert this to a non-breaking change by keeping the wrapperClass
on the wrapping div
and just making additional style modifications to achieve what we're looking for (a highlight outline around the whole file input "button"). If no style changes are made on current projects, there will be no breaking change to the component.
Current projects can even just add focus styles to the, now adjacent, span
(without modifying any other styles) to at least provide an outline around the text of the "button".
Otherwise, the "button" specific styles can be moved from the wrapperClass
to the inner span
to achieve the ideal state.
Enables focus styling on the
span
(when focusing on theinput
) by moving it after theinput
, which allows for the use of adjacent sibling css selector (+
).Author Checklist