Skip to content

Commit

Permalink
fix: focus outline on header bottom-bar (#2205)
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-ico authored Dec 22, 2023
1 parent 84cc37b commit 949c2d7
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,27 @@ slot[name='functions'] {
/* TODO inline margin */
}

@media screen and (--lg) {
slot[name='main-nav'],
slot[name='functions'] {
padding-top: var(--telekom-spacing-composition-space-06);
}
}

@media screen and (--xl) {
slot[name='main-nav'],
slot[name='functions'] {
padding-top: var(--telekom-spacing-composition-space-07);
}
}

@media screen and (--2xl) {
slot[name='main-nav'],
slot[name='functions'] {
padding-top: var(--telekom-spacing-composition-space-10);
}
}

[part~='base'] {
/* height: var(--_height); */
height: var(--_base-height);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,5 @@
:host::part(icon-right-container) {
display: flex;
align-items: center;
position: absolute;
}
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ export class TelekomNavItem {
this.show();
}
};

handleTriggerClick = (event: MouseEvent) => {
if (event.ctrlKey) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@
> .scale-telekom-nav-item
> :where(a, button):hover:after {
content: '';
width: 100%;
height: var(--telekom-spacing-composition-space-02);
background: var(--telekom-color-text-and-icon-primary-hovered);
display: block;
Expand Down Expand Up @@ -258,7 +257,6 @@
> .scale-telekom-nav-item[active]
> :where(a, button):after {
content: '';
width: 100%;
height: var(--telekom-spacing-composition-space-03);
background: var(--telekom-color-text-and-icon-primary-standard);
display: block;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,43 @@
justify-content: center;
}

.scale-telekom-nav-list[alignment='left'] > *:not(:last-child) {
.scale-telekom-nav-list[alignment='left']:not([variant='main-nav'])
> .scale-telekom-nav-item
button,
.scale-telekom-nav-list[alignment='left']:not([variant='main-nav'])
> .scale-telekom-nav-item
a {
margin-inline-end: var(--_spacing-x-slotted);
}
.scale-telekom-nav-list[alignment='right'] > *:not(:first-child) {
margin-inline-start: var(--_spacing-x-slotted);

.scale-telekom-nav-list[variant='main-nav'] > .scale-telekom-nav-item {
position: relative;
left: calc(-1 * var(--telekom-spacing-composition-space-06));
margin-inline-end: 0;
}

.scale-telekom-nav-list[variant='main-nav'] > .scale-telekom-nav-item button,
.scale-telekom-nav-list[variant='main-nav'] > .scale-telekom-nav-item a {
padding-inline-start: var(--telekom-spacing-composition-space-06);
}
.scale-telekom-nav-list[variant='main-nav'] > .scale-telekom-nav-item button,
.scale-telekom-nav-list[variant='main-nav'] > .scale-telekom-nav-item a {
padding-inline-end: calc(
var(--_spacing-x-slotted) - var(--telekom-spacing-composition-space-06)
);
}
.scale-telekom-nav-list[alignment='center'] > * {
margin-inline: calc(0.5 * var(--_spacing-x-slotted));

.scale-telekom-nav-list[variant='main-nav']
> .scale-telekom-nav-item
button::after,
.scale-telekom-nav-list[variant='main-nav'] > .scale-telekom-nav-item a::after {
margin-inline-start: var(--telekom-spacing-composition-space-06);
width: calc(100% - var(--_spacing-x-slotted));
}

.scale-telekom-nav-list[alignment='right']:not([variant='main-nav'])
> *:not(:first-child) {
margin-inline-start: var(--_spacing-x-slotted);
}

.scale-telekom-nav-list[slot='mobile-meta-nav'],
Expand Down

0 comments on commit 949c2d7

Please sign in to comment.