Giter Club home page Giter Club logo

Comments (3)

TheSharpieOne avatar TheSharpieOne commented on May 18, 2024

While this component is relatively simple, the problem lies with HTML5, bootstrap, and their being different way to render what is essentially the same thing.
I am all for using HTML5 components, but for better backwards compatibility at no real cost; I would use the div elements over progress. Even for modern browsers (as in, do not wrap the div within a progress element).
Animation doesn't seem to work on most modern browsers anyways (also, this comment from the linked issue may suggest that bootstrap will itself go back to just the div)

What do you think?

from reactstrap.

eddywashere avatar eddywashere commented on May 18, 2024

Nice find! I tried creating a div version without the progress element wrapping it and it didn't seem to show a progress bar at all. If it does work without progress, that sounds like a better option. Otherwise, I think sticking to the progress element is not so bad since it's broken in bootstrap and can be fixed on their end. If the markup does change the component can be updated without people having to worry too much about what's changed between bootstrap releases.

from reactstrap.

TheSharpieOne avatar TheSharpieOne commented on May 18, 2024

I forgot I had add some custom styles to get the div to work in all browsers. This is because bootstrap only targets the div in IE9 which is blah.
For now, we can just go with progress, using the div fallback within the progress so it should work with IE9. We can have the animated props which will add the class, but animations will not work until bootstrap fixes them. It probably the best route.

Edit
Well, with the tag prop, we can let the user choose, defaulting to progress. We can do some special logic for when the tag is progress or not; since they have different markup.

from reactstrap.

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.