mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 04:04:00 -06:00
BottomNavLinks: Accessible text for image and icon (#36650)
This commit is contained in:
parent
3c1a9a9eae
commit
5e62bddd1d
@ -7,7 +7,6 @@ import { Icon } from './Icon';
|
||||
|
||||
Grafana's wrapper component over [Font Awesome](https://fontawesome.com/) and Unicons icons
|
||||
|
||||
|
||||
### Changing icon size
|
||||
|
||||
By default `Icon` has width and height of `16px` and font-size of `14px`. Pass `className` to control icon's size:
|
||||
@ -15,8 +14,7 @@ By default `Icon` has width and height of `16px` and font-size of `14px`. Pass `
|
||||
```jsx
|
||||
import { css } from 'emotion';
|
||||
|
||||
<Icon name="check" />
|
||||
<Icon name="check" />;
|
||||
```
|
||||
|
||||
|
||||
<Props of={Icon} />
|
||||
|
@ -50,8 +50,8 @@ export default class BottomNavLinks extends PureComponent<Props, State> {
|
||||
<div className="sidemenu-item dropdown dropup">
|
||||
<Link href={link.url} className="sidemenu-link" target={link.target}>
|
||||
<span className="icon-circle sidemenu-icon">
|
||||
{link.icon && <Icon name={link.icon as IconName} size="xl" />}
|
||||
{link.img && <img src={link.img} />}
|
||||
{link.icon && <Icon name={link.icon as IconName} size="xl" title="Help icon" />}
|
||||
{link.img && <img src={link.img} alt="Profile picture" />}
|
||||
</span>
|
||||
</Link>
|
||||
<ul className="dropdown-menu dropdown-menu--sidemenu" role="menu">
|
||||
|
Loading…
Reference in New Issue
Block a user