Skip to content

Commit 238fa2b

Browse files
marie-jjleveugle
authored andcommitted
feat(navbar): add optional fixed parameter
1 parent 638e7cf commit 238fa2b

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

packages/manager/modules/navbar/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,17 @@ Indicate current universe
128128
}
129129
```
130130

131+
#### fixed position
132+
133+
Indicate if fixed position should be applied to component
134+
135+
```js
136+
{
137+
fixed: true
138+
}
139+
```
140+
141+
131142
## Build
132143

133144
```sh

packages/manager/modules/navbar/src/template.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<oui-navbar
22
class="flex-nowrap"
33
data-brand="$ctrl.brand"
4-
data-active-link="{{ :: $ctrl.navbarOptions.universe }}">
4+
data-active-link="{{ :: $ctrl.navbarOptions.universe }}"
5+
data-fixed="$ctrl.fixed">
56
<oui-navbar-main>
67
<oui-spinner data-size="s" data-ng-if="$ctrl.isLoading"></oui-spinner>
78
<div

0 commit comments

Comments
 (0)