-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setting color on Menu.Item has no effect #1583
Comments
Color is applied when the items are -active={activeItem === 'Editorials'}
+active={activeItem === 'editorials'}
-active={activeItem === 'Reviews'}
+active={activeItem === 'reviews'} |
@levithomason why is the color applied only when the item is active |
That is just how the default them chose to work. You can customize your own theme to your liking. You might also be looking for an |
Please see in the code below (sample code from https://react.semantic-ui.com/collections/menu#menu-example-name-prop).
The 'color' property set on the Menu Item ("reviews") does not work (color not set).
import React, { Component } from 'react'
import { Menu } from 'semantic-ui-react'
export default class MenuExampleNameProp extends Component {
state = {}
handleItemClick = (e, { name }) => this.setState({ activeItem: name })
render() {
const { activeItem } = this.state
}
}
The text was updated successfully, but these errors were encountered: