Comments (10)
Sorry, I stand corrected. Button is absolutely fine, but the Panel doesn't use transferPropsTo.
from react-bootstrap.
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.
Let me see if I can do that tonight.
from react-bootstrap.
Does Nav
also suffer from this? Adding className="navbar-right"
does not add the new class.
from react-bootstrap.
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.
I believe this issue has been resolved via #104, #105, #107.
Feel free to re-open if thats not the case.
from react-bootstrap.
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.
Nav
's classes apply to the <nav>
, not the <ul>
. Use the pullRight
prop there.
from react-bootstrap.
And next time check the docs first - this is all clearly shown there.
from react-bootstrap.
<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)
- Bug - Page Not Found for Tabs Doc Site HOT 3
- Dropdown should overlay the parent container HOT 1
- Alignment of button text in grid changes if href tag is set HOT 1
- Feature Request: Custom Anchor element for PageItem
- Button is not responsive inside the MODAL HOT 3
- defaultActiveKey and alwaysOpen not working properly at the same time HOT 1
- Error using components HOT 1
- NextJS <Link> giving error with react-bootstrap <Navbar.Link> HOT 1
- Docs - Components props tables are missing
- Tabs Component doesn't pass id attribute to underlying element HOT 1
- aria-label for DropdownButton HOT 2
- React Bootstrap doesn't let me set background color HOT 1
- Bug: OverlayTrigger doesn't hide after modal close. HOT 5
- Rendering children (Accordion) HOT 1
- Modal component stop working when closed HOT 6
- Keyboard input Tab + Shift escapes Modal's focus HOT 3
- ESC and Up/Down in Dropdown doesn't work when using the native Bootstrap HOT 2
- Suggest adding 'use clientโ for all the react-bootstrap component HOT 4
- Question: How to enable right-to-left (RTL) while using bootstrap SCSS instead of CSS to customize styles HOT 1
- EventKey in callback function onSelect of Tabs component does not match type of EventKey given to an individual Tab component HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-bootstrap.