Skip to content

Commit

Permalink
feat(ui): top-navigation - control appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
artyorsh committed Sep 23, 2019
1 parent 3bc19af commit 7fe81f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/framework/ui/topNavigation/topNavigation.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ export class TopNavigationComponent extends React.Component<TopNavigationProps>
return React.Children.map(source, (element: TopNavigationActionElement, index: number) => {
return React.cloneElement(element, {
key: index,
appearance: this.props.appearance,
});
});
}
Expand Down
8 changes: 8 additions & 0 deletions src/playground/src/ui/screen/topNavigation/type.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ export const topNavigationShowcase: ComponentShowcase = {
};

export const topNavigationSettings: ComponentShowcaseSetting[] = [
{
propertyName: 'appearance',
value: 'default',
},
{
propertyName: 'appearance',
value: 'control',
},
{
propertyName: 'alignment',
value: 'start',
Expand Down

0 comments on commit 7fe81f2

Please sign in to comment.