-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #256 from Infineon/252-fix-navbar-component-positi…
…on-inconsistency 252 fix navbar component position inconsistency
- Loading branch information
Showing
45 changed files
with
630 additions
and
402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
examples/wrapper-components/react-javascript/src/components/Navbar/Navbar.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
import { IfxNavbar, IfxNavbarMenuItem, IfxSearchBar, IfxDropdownMenu, IfxDropdownItem } from '@infineon/infineon-design-system-react'; | ||
|
||
function Navbar() { | ||
return ( | ||
<div> | ||
<IfxNavbar application-name="Application name"> | ||
<IfxNavbarMenuItem slot="left-menu-item">Menu Item</IfxNavbarMenuItem> | ||
<IfxNavbarMenuItem slot="left-menu-item">Menu Item</IfxNavbarMenuItem> | ||
|
||
<IfxDropdownMenu slot="dropdown-menu"> | ||
<IfxDropdownItem>Menu Item</IfxDropdownItem> | ||
<IfxDropdownItem>Menu Item</IfxDropdownItem> | ||
<IfxDropdownItem>Menu Item</IfxDropdownItem> | ||
</IfxDropdownMenu> | ||
|
||
<IfxSearchBar size="default" slot="search-bar-right" is-open="false" show-close-button="true"></IfxSearchBar> | ||
|
||
<IfxNavbarMenuItem hide-label="false" slot="right-menu-item">Right One</IfxNavbarMenuItem> | ||
<IfxNavbarMenuItem hide-label="false" slot="right-menu-item">Right Two</IfxNavbarMenuItem> | ||
<IfxNavbarMenuItem hide-label="false" slot="right-menu-profile-item">Tisho</IfxNavbarMenuItem> | ||
</IfxNavbar> | ||
</div> | ||
); | ||
} | ||
|
||
export default Navbar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
examples/wrapper-components/react-typescript/src/components/Navbar/Navbar.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
import { IfxNavbar, IfxNavbarMenuItem, IfxSearchBar, IfxDropdownMenu, IfxDropdownItem } from '@infineon/infineon-design-system-react'; | ||
|
||
function Navbar() { | ||
return ( | ||
<div> | ||
<IfxNavbar application-name="Application name"> | ||
<IfxNavbarMenuItem slot="left-menu-item">Menu Item</IfxNavbarMenuItem> | ||
<IfxNavbarMenuItem slot="left-menu-item">Menu Item</IfxNavbarMenuItem> | ||
|
||
<IfxDropdownMenu slot="dropdown-menu"> | ||
<IfxDropdownItem>Menu Item</IfxDropdownItem> | ||
<IfxDropdownItem>Menu Item</IfxDropdownItem> | ||
<IfxDropdownItem>Menu Item</IfxDropdownItem> | ||
</IfxDropdownMenu> | ||
|
||
<IfxSearchBar size="default" slot="search-bar-right" is-open="false" show-close-button="true"></IfxSearchBar> | ||
|
||
<IfxNavbarMenuItem hide-label="false" slot="right-menu-item">Right One</IfxNavbarMenuItem> | ||
<IfxNavbarMenuItem hide-label="false" slot="right-menu-item">Right Two</IfxNavbarMenuItem> | ||
<IfxNavbarMenuItem hide-label="false" slot="right-menu-profile-item">Tisho</IfxNavbarMenuItem> | ||
</IfxNavbar> | ||
</div> | ||
); | ||
} | ||
|
||
export default Navbar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
:root { | ||
/* :root { | ||
margin: 0; | ||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', | ||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', | ||
sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
} */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
examples/wrapper-components/vue-javascript/src/components/Navbar.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
|
||
<template> | ||
<div> | ||
<ifx-navbar application-name="Application name" fixed="true"> | ||
<ifx-navbar-menu-item slot="left-menu-item">Menu Item</ifx-navbar-menu-item> | ||
<ifx-navbar-menu-item slot="left-menu-item">Menu Item</ifx-navbar-menu-item> | ||
|
||
<ifx-dropdown-menu slot="dropdown-menu"> | ||
<ifx-dropdown-item>Menu Item</ifx-dropdown-item> | ||
<ifx-dropdown-item>Menu Item</ifx-dropdown-item> | ||
<ifx-dropdown-item>Menu Item</ifx-dropdown-item> | ||
</ifx-dropdown-menu> | ||
|
||
<ifx-search-bar size="default" slot="search-bar-right" is-open="false" show-close-button="true"></ifx-search-bar> | ||
|
||
<ifx-navbar-menu-item hide-label="false" slot="right-menu-item">Right One</ifx-navbar-menu-item> | ||
<ifx-navbar-menu-item hide-label="false" slot="right-menu-item">Right Two</ifx-navbar-menu-item> | ||
<ifx-navbar-menu-item hide-label="false" slot="right-menu-profile-item">Tisho</ifx-navbar-menu-item> | ||
</ifx-navbar> | ||
|
||
</div> | ||
</template> | ||
|
||
<script setup> | ||
</script> | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { createApp } from 'vue' | ||
import App from './App.vue' | ||
|
||
import './assets/main.css' | ||
// import './assets/main.css' | ||
import { ComponentLibrary } from '@infineon/infineon-design-system-vue'; | ||
|
||
createApp(App).use(ComponentLibrary).mount('#app'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.