Skip to content

How can i remove outline/border #4663

Answered by Rall3n
MuttakinHasib asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @MuttakinHasib,

I hope you don't mind me converting your issue to a discussion. Questions like this are better asked here.


You can remove the border around the component using react-selects styling framework.

You have to remove both borderColor and boxShadow from the styles and overwrite the borderColor attribute with either the default or a custom color. The same has to be done for the :hover state.

<Select
   styles={{
    control: ({ borderColor, boxShadow, ...provided }, { theme }) => ({
      ...provided,
      borderColor: theme.colors.neutral20,
      '&:hover': {
        borderColor: theme.colors.neutral30
      }
    })
  }}
/>

Regarding the outline around the <input>: Thi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MuttakinHasib
Comment options

Answer selected by MuttakinHasib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4660 on June 28, 2021 09:36.