Skip to content

Commit

Permalink
fix(telekom-header): more feedback (#1531)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arturo Castillo Delgado authored Jan 27, 2023
1 parent 8a314c7 commit 5c942ad
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@
--_display-top-app-name: none;
--_display-bottom-app-name: block;

--_grid-column-body: 2 / span 15;

--scl-telekom-header-height: var(--_height);
}

:host([scrolled][app-name]) {
--_grid-column-body: 2 / span 15;
}
:host([scrolled-back]) {
--_display-bottom-app-name: block;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class TelekomHeader {
@Element() hostElement: HTMLStencilElement;

@Prop() mainNavigation: any;
@Prop() appName?: string;
@Prop({ reflect: true }) appName?: string;
@Prop() appNameLink?: string;
@Prop() appNameClick?: any;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
text-decoration: none;
}

/* temporary */
[part~='close-button'] {
position: absolute;
top: 6px;
right: 10px;
top: var(--telekom-spacing-unit-x2);
right: var(--telekom-spacing-unit-x4);
--color-ghost: var(--telekom-color-text-and-icon-standard);
}

[part~='body'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,22 +101,6 @@
color: var(--telekom-color-text-and-icon-primary-standard);
}

.scale-telekom-nav-list[variant='main-nav']
> .scale-telekom-nav-item[active]
> :where(a, button):after,
.scale-telekom-nav-list[variant='functions']
> .scale-telekom-nav-item[active]
> :where(a, button):after {
content: '';
width: 100%;
height: var(--telekom-spacing-unit-x1);
background: var(--telekom-color-primary-standard);
display: block;
position: absolute;
bottom: 0;
left: 0;
}

.scale-telekom-nav-list[variant='main-nav']
> .scale-telekom-nav-item
> :where(a, button):hover:after,
Expand All @@ -139,6 +123,22 @@
left: 0;
}

.scale-telekom-nav-list[variant='main-nav']
> .scale-telekom-nav-item[active]
> :where(a, button):after,
.scale-telekom-nav-list[variant='functions']
> .scale-telekom-nav-item[active]
> :where(a, button):after {
content: '';
width: 100%;
height: var(--telekom-spacing-unit-x1);
background: var(--telekom-color-primary-standard);
display: block;
position: absolute;
bottom: 0;
left: 0;
}

/* variants: meta-nav-external, meta-nav, lang-switcher (top bar) */

.scale-telekom-nav-list[variant='meta-nav-external']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ const mobileMenu = `<scale-telekom-nav-flyout
## Standard

<Canvas withSource="none">
<Story name="Standard" args={{}} inline={false}>
<Story name="Standard" args={{}} inline={false} height={500}>
{() => ({
template: `
<div class="brand-header-spacing" style="min-height: 120vh; background: var(--telekom-color-background-surface-subtle);">
Expand Down Expand Up @@ -456,7 +456,7 @@ const mobileMenu = `<scale-telekom-nav-flyout
## Application Name

<Canvas withSource="none">
<Story name="Application Name" args={{}} inline={false}>
<Story name="Application Name" args={{}} inline={false} height={500}>
{() => ({
template: `
<div class="brand-header-spacing" style="min-height: 120vh; background: var(--telekom-color-background-surface-subtle);">
Expand Down Expand Up @@ -575,7 +575,7 @@ const mobileMenu = `<scale-telekom-nav-flyout
## Flyout Navigation

<Canvas withSource="none">
<Story name="Flyout Navigation" args={{}} inline={false}>
<Story name="Flyout Navigation" args={{}} inline={false} height={500}>
{() => ({
template: `
<div class="brand-header-spacing" style="min-height: 120vh; background: var(--telekom-color-background-surface-subtle);">
Expand Down

0 comments on commit 5c942ad

Please sign in to comment.