Skip to content

Commit

Permalink
fix: Technical - replace hard coded style with common browser css sty…
Browse files Browse the repository at this point in the history
…ling <sbb-icon-sidebar-container> (#273)

* refactoring -> replace hard coded style with common browser css styling

* hardous value changes
  • Loading branch information
aiAdrian authored Aug 29, 2024
1 parent bc612e8 commit b505d03
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<sbb-icon-sidebar-container [attr.style]="getSidebarContainerStyle()">
<sbb-icon-sidebar-container [class]="getSidebarClassTag()">
<sbb-icon-sidebar [(expanded)]="expanded" >
<!--<a sbbIconSidebarItem label="Varianten" (click)="onVariantenClicked()" class="sbb-active">-->
<a *ngIf="!disableBackend"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@
a.SideBarMainIcon.sbb-active {
pointer-events: all;
}

.sbb-icon-sidebar-container {
top: 85px;
}

.sbb-icon-sidebar-container.disableBackend {
top: 53px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ export class NetzgrafikApplicationComponent {
});
}

getSidebarContainerStyle(): string {
getSidebarClassTag(): string {
if (this.disableBackend) {
return "top: 53px;";
return "disableBackend";
}
return "top: 85px;";
return "";
}

getVariantIsWritable(): boolean {
Expand Down

0 comments on commit b505d03

Please sign in to comment.