Skip to content

Commit

Permalink
fix(core/map-navigation): use ix-application-header for header part (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
danielleroux committed Nov 23, 2022
1 parent ec6744a commit de31afa
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 22 deletions.
8 changes: 7 additions & 1 deletion packages/core/component-doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,16 @@
"docsTags": [],
"encapsulation": "shadow",
"dependents": [
"ix-basic-navigation"
"ix-basic-navigation",
"ix-map-navigation"
],
"dependencies": [],
"dependencyGraph": {
"ix-basic-navigation": [
"ix-application-header"
],
"ix-map-navigation": [
"ix-application-header"
]
},
"props": [
Expand Down Expand Up @@ -4326,11 +4330,13 @@
"dependents": [],
"dependencies": [
"ix-map-navigation-overlay",
"ix-application-header",
"ix-icon-button"
],
"dependencyGraph": {
"ix-map-navigation": [
"ix-map-navigation-overlay",
"ix-application-header",
"ix-icon-button"
],
"ix-map-navigation-overlay": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@
position: relative;
height: 32px;
overflow: hidden;
line-height: 0rem;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class ApplicationHeader {
<div class="logo">
<slot name="logo"></slot>
</div>
<span class="name">{this.name}</span>
<div class="name">{this.name}</div>
<slot></slot>
</Host>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ describe('ix-application-header', () => {
<div class="logo">
<slot name="logo"></slot>
</div>
<span class="name">
<div class="name">
Test App
</span>
</div>
<slot></slot>
</mock:shadow-root>
<div slot="logo">
Expand Down
14 changes: 2 additions & 12 deletions packages/core/src/components/map-navigation/map-navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,21 +80,11 @@
width: 100%;
padding: 0 $default-space;

--theme-app-header-logo--color: var(--theme-color-std-text);

button {
margin-left: $default-space;
}

.map-nav-brand-logo {
min-width: 4.75rem;
margin-inline-end: 3.5rem;
}

.map-nav-brand-title {
@include text-l-title;
@include ellipsis;
color: var(--theme-map-navigation-header--color);
flex-grow: 1;
}
}
}

Expand Down
12 changes: 6 additions & 6 deletions packages/core/src/components/map-navigation/map-navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,12 @@ export class MapNavigation {
<div class="map-nav">
<div class="map-nav-sidebar">
<div class="map-nav-header">
<div class="map-nav-header-brand">
<div class="map-nav-brand-logo">
<slot name="logo"></slot>
</div>
<span class="map-nav-brand-title">{this.applicationName}</span>
</div>
<ix-application-header
name={this.applicationName}
class="map-nav-header-brand"
>
<slot name="logo"></slot>
</ix-application-header>
</div>
<div class="map-nav-sidebar-content">
<div class="map-nav-sidebar-static-content">
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit de31afa

Please sign in to comment.