how to add a custom style to aysncSelect API?
const customStyles = { control: (base, state) => ({ ...base, background: "#023950", // match with the menu borderRadius: state.isFocused ? "3px 3px 0 0" : 3, // Overwrittes the different states of border borderColor: state.isFocused ? "yellow" : "green", // Removes weird border around container boxShadow: state.isFocused ? null : null, "&:hover": { // Overwrittes the different states of border borderColor: state.isFocused ? "red" : "blue" } }) };
This seems working for react-select but not for async-select, I wanted to make the select box background as transparent . Thanks in advance
@pratyushgudipati , I just tried it for both and it works fine for me. I would double check, and if you are still having issues (I assume on v2)? please create a https://codesandbox.io/s/k5rvn9z3lv
Hi Cameron,
thanks for the reply. i have worked to fix the issue from my end its just my wrong assumption while applying css to the coponent which went wrong.
On Thu, Mar 7, 2019 at 11:23 AM Pratyush Gudipati < [email protected]> wrote:
i am not able to override existing class css of the component AsyncSelect.can u please help me
On Wed, Mar 6, 2019 at 10:31 PM Cameron Moss [email protected] wrote:
@pratyushgudipati https://github.com/pratyushgudipati , I just tried it for both and it works fine for me. I would double check, and if you are still having issues (I assume on v2)? please create a https://codesandbox.io/s/k5rvn9z3lv
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JedWatson/react-select/issues/3461#issuecomment-470189042, or mute the thread https://github.com/notifications/unsubscribe-auth/Ajl4iZqvmlRkEid3pqkT7CHxzbDeyJ1bks5vT_RggaJpZM4beiaP .
-- Thanks, Pratyush Gudipati
-- Thanks, Pratyush Gudipati