React toastify text and close button is not aligned to the toast container

438 Views Asked by At

React toastify text and close button is not aligned to the toast container enter image description here

This is the toast container in app.js and there is no

          <ToastContainer
            position="bottom-center"
            autoClose={5000}
            hideProgressBar={false}
            newestOnTop={false}
            closeOnClick
            rtl={false}
            pauseOnFocusLoss
            draggable
            pauseOnHover
            theme="colored"
          />



 export const showErrorToast = (message) => {
  toast.error(message, {
    position: "bottom-center",
    autoClose: 3000,
    hideProgressBar: false,
    closeOnClick: true,
    pauseOnHover: true,
    draggable: true,
    progress: undefined,
    progressStyle: { background: "#DBDBDB" },
    theme: "colored",
    style: { background: "#ED664B" },
  });
};
1

There are 1 best solutions below

0
Kunal Kalwar On

Looks like there was button css on a Login.css file, removing this solved the issue

button {
  background-color: #b10201;
  color: white;
  width: 100%;
  height: 32px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}