Skip to content

Commit

Permalink
Merge pull request #1251 from helsingborg-stad/fix/corrected-login--l…
Browse files Browse the repository at this point in the history
…ogout-button

fix: corrected login logout button
  • Loading branch information
NiclasNorin authored Jan 15, 2025
2 parents 94c7c0c + c409d5a commit 37a6c92
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 28 deletions.
8 changes: 0 additions & 8 deletions assets/source/3.0/sass/navigation/_user.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ $user-background-width: var(--user-background-width, 0px) !default;

.user__button {
min-width: 0;

@include mq('md') {
display: none;
}
}

// User placed in the drawer
Expand All @@ -60,10 +56,6 @@ $user-background-width: var(--user-background-width, 0px) !default;
&.user--active .user__container {
display: flex;
}

.user__button {
display: none;
}
}

// Logged in user
Expand Down
3 changes: 0 additions & 3 deletions views/v3/partials/header/user/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,12 @@
])
@endavatar
@endlink

@button([
'text' => $lang->login,
'color' => 'basic',
'style' => 'basic',
'href' => $loginUrl,
'classList' => [
'u-display--none@xs',
'u-display--none@sm',
'user__button',
'js-action-login-click'
],
Expand Down
18 changes: 1 addition & 17 deletions views/v3/partials/header/user/user.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,4 @@
@endtypography
@endlink
@endgroup

<!-- Logout mobile -->
@button([
'text' => $lang->logout,
'color' => 'basic',
'style' => 'basic',
'href' => $logoutUrl,
'classList' => [
'user__button',
'js-action-logout-click'
],
])
@endbutton
@endelement



@endelement

0 comments on commit 37a6c92

Please sign in to comment.