Skip to content
This repository has been archived by the owner on Aug 7, 2020. It is now read-only.

Commit

Permalink
style(oui-navbar): add brand title (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
AxelPeter authored May 18, 2018
1 parent 3c4af57 commit 4342d03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/oui-navbar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Note: All children menus have `.oui-navbar-menu_fixed`. The component is intende
### Properties of attribute `brand`

- `label` _(optional)_: define `aria-label` of the brand link.
- `title`: _(optional)_: define the brand text.
- `url`: define `href` of the brand link.

#### Set a brand icon with a CSS class (for `oui-icon`)
Expand All @@ -45,6 +46,7 @@ The brand icon will be set as a `<span>`.
```json
{
"label": String,
"title": String,
"url": String<Url>,
"iconClass": String
}
Expand All @@ -63,6 +65,7 @@ The brand icon will be set as a `<img>`.
```json
{
"label": String,
"title": String,
"url": String<Url>,
"iconAlt": String,
"iconClass": String,
Expand Down
3 changes: 3 additions & 0 deletions packages/oui-navbar/src/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
<span ng-if="::!$ctrl.brand.iconSrc"
ng-class="::$ctrl.brand.iconClass">
</span>
<span class="oui-navbar__title" ng-if="::$ctrl.brand.title"
ng-bind="::$ctrl.brand.title">
</span>
</a>
<!-- /Brand -->

Expand Down

0 comments on commit 4342d03

Please sign in to comment.