Giter Site home page Giter Site logo

Comments (4)

teodosii avatar teodosii commented on May 22, 2024

Couldn't reproduce, pretty sure you've messed somehow the styles. Tested in the samples project, replaced TypeExample.js's add with this piece of code and it's working as expected

add() {
  const ERROR = 'DANGER';
  const NO_NAME = 'You must provide a name for this calculation!';
  return this.props.addNotification({
    title: ERROR,
    message: NO_NAME,
    type: ERROR.toLowerCase(),
    insert: "top",
    container: "top-right",
    animationIn: ["animated", "fadeIn"],
    animationOut: ["animated", "fadeOut"],
    dismiss: { duration: 2500 },
    dismissable: { click: true }
  });
}

from react-notifications-component.

teodosii avatar teodosii commented on May 22, 2024

Did you manage to fix the issue or is it still reproducing @zilahir ? Without a reproducing repo I cannot really reproduce this as it's working as expected in the samples project - which is the source code for github pages.

from react-notifications-component.

zilahir avatar zilahir commented on May 22, 2024

@teodosii i did a small hack to be honest:

.notification-danger {
    .notification-message {
        background-color: $warning-text-color !important;
        text-align: left;
    }
}

I did not have time to create a sandbox project and try to reproduce it, so went around the problem myself. Thanks for the reply and the question tho, during the weekend i'll try to reproduce myself in a clean project and see where does that leads.

from react-notifications-component.

teodosii avatar teodosii commented on May 22, 2024

I'd suggest you to use custom content as it is a better suit if you want more control over the CSS. I will close this issue for now, feel free to open another issue if you struggle with it or you find another bug.

from react-notifications-component.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.