Git Product home page Git Product logo

Comments (10)

time4tea avatar time4tea commented on April 28, 2024

Sorry, I stand corrected. Button is absolutely fine, but the Panel doesn't use transferPropsTo.

from react-bootstrap.

stevoland avatar stevoland commented on April 28, 2024

A bug I would say. I think Panel, DropdownButton and SplitButton should all use transferPropsTo. DropdownButton and SplitButton should also explicitly set the title prop to null to stop this being passed to the DOM element.

PR greatly appreciated!

from react-bootstrap.

time4tea avatar time4tea commented on April 28, 2024

Let me see if I can do that tonight.

from react-bootstrap.

scottwoodall avatar scottwoodall commented on April 28, 2024

Does Nav also suffer from this? Adding className="navbar-right" does not add the new class.

from react-bootstrap.

pieterv avatar pieterv commented on April 28, 2024

I think the Nav one is a separate issue, it does have transferToProps set but the transferToProps passes the navbar-right class to the wrong element, the top level nav rather than the ul where the other nav classes are set.
I think the navbar-right class should really be set-able via a prop on the Nav component.

PR for this would also be greatly appreciated!

from react-bootstrap.

pieterv avatar pieterv commented on April 28, 2024

I believe this issue has been resolved via #104, #105, #107.

Feel free to re-open if thats not the case.

from react-bootstrap.

JMLX42 avatar JMLX42 commented on April 28, 2024

I think the issue still exists for the Nav component:

var Header = React.createClass({
    render: function()
    {
        return (
            <div id="header">
                <Navbar>
                    <NavBrand>cocorico</NavBrand>
                    <Nav className="pull-right">
                        <NavItem eventKey={1} href="#">Link</NavItem>
                        <NavItem eventKey={2} href="#">Link</NavItem>
                    </Nav>
                </Navbar>
            </div>
        );
    }
});

doesn't work as expected.

from react-bootstrap.

taion avatar taion commented on April 28, 2024

Nav's classes apply to the <nav>, not the <ul>. Use the pullRight prop there.

from react-bootstrap.

taion avatar taion commented on April 28, 2024

And next time check the docs first - this is all clearly shown there.

from react-bootstrap.

hggaguilera avatar hggaguilera commented on April 28, 2024
<NavDropdown title="Dropdown" id="collasible-nav-dropdown">
        <NavDropdown.Item href="#action/3.1">Action</NavDropdown.Item>
</NavDropdown>

The NavDropdown create a div element and inside that element create a link tag with the following properties:
<a aria-haspopup="true" aria-expanded="false" href="#" class="dropdown-toggle nav-link" role="button">Dropdown</a>
How do I add a Font Awesome icon and a span tag instead of the text, also how do I add more classes to the link tag additional to the "dropdown-toggle nav-link" classes?

from react-bootstrap.

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.