GithubHelp home page GithubHelp logo

react-toastify-doc's People

Contributors

alexeysergeev-cm avatar angeldarco avatar annastrin avatar baghlani avatar dazlygonsalves avatar dcantatore avatar dependabot[bot] avatar eroblaze avatar fkhadra avatar gitryder avatar heytulsiprasad avatar hmu332233 avatar hunzlahmalik avatar jamesdfrearson avatar jessewriter avatar joaopedr0vieira avatar karenok avatar mkljczk avatar nafaska avatar nasheomirro avatar ngschaider avatar ourystd avatar paulsmithkc avatar purini39 avatar rakeshkumawat1 avatar stamatisdeli avatar timrodz avatar user7241 avatar zecka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-toastify-doc's Issues

Update default code theme to display copy badge

The default code theme of the code snippets (in light theme) doesn't show the Copy badge on the top right corner, but shows a black box with no badge text in it. However, it shows up in dark theme as fine.

Reproduce the issue

I've tried opening the site on these browsers, of which I've attached a screenshot of a random codeblock.

  • Microsoft Edge
    Annotation 2020-07-21 142854

  • Mozilla Firefox
    Annotation 2020-07-21 142702

I believe this issue would be the same for all browsers (as it might be rendering the same theme everywhere)

Possible fixes

I think it can be solved if we add a different code theme for light mode than using same for both dark and light modes.

vid

noti-center.mov

css variable diagram or explanation

Hi, I have found it confusing which variable affects which aspect of the toast container. The names are kind of explicit but my assumptions weren't always right. For instance, I want to change the background color but I am using a theme. Do I use --toastify-color-dark or --toastify-toast-background.

I think it would be super helpful to label an image with what is where or at least add some comments to https://fkhadra.github.io/react-toastify/how-to-style/#override-css-variables to generally explain what they affect. Or add the variables to the playground so we can fool with them there to see what they do?

Code sample for passing functions to `toastClassName`

The example here assumes context param is an object but is possibly undefined.

// type doesn't exist on type { //... } | undefined
toastClassName={({ type }) => contextClass[type || "default"] +
  " relative flex p-1 min-h-10 rounded-md justify-between overflow-hidden cursor-pointer"
}

Code samples for basic setup

Add basic example code on the installation page instead of having to watch a 10 minute video. Also means that less mistakes will be made, even when using said video, so that you can copy and paste the basics easily.

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.