0

Note: the question is linked to this question and marked as duplicated which doesn't make any sense.

By using styled components, I'm not able to style option element. Please help me to understand why it doesn't effect the style. It works for other elements such as select (you can also see in the example).

You can find the code here:

When you click select element, you'll see that option has default browser style.

frankie303
  • 82
  • 7
  • the question was not "how to do custom styling". It doesn't work for option element in particular and I already checked open source libraries but most of them doesn't use styled-components or they don't use native option element (they use div instead). – frankie303 Jan 26 '22 at 10:28
  • The duplicate is not about "how to do custom styling", its about "why you can't custom style". "It doesn't work for option element in particular", yes, thats what the duplicate answer explain why though. Tell me what doesnt make any sense, indeed for custom options you usually style a custom div. – Dennis Vash Jan 26 '22 at 12:13

0 Answers0