Skip to content

Commit

Permalink
improve readability of cookie consent banner
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed Oct 20, 2023
1 parent da2a585 commit 0c4834b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/web/Client/Shared/CookieBanner.razor
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@
</MudText>
<MudText Class="mt-3" Typo="Typo.body2">
Du kan læse mere i vores
<MudLink Href="/privacy" Target="_blank">Privatlivspolitik</MudLink> og
<MudLink Href="/terms" Target="_blank">Servicevilkår</MudLink>.
</MudText>
<MudText Class="mt-3" Typo="Typo.body2">
Klik på banneret for at acceptere vores brug af cookies.
<MudLink Color="Color.Inherit" Href="/privacy" Target="_blank" Typo="Typo.body2" Underline="Underline.Always"><b>Privatlivspolitik</b></MudLink> og
<MudLink Color="Color.Inherit" Href="/terms" Target="_blank" Typo="Typo.body2" Underline="Underline.Always"><b>Servicevilkår</b></MudLink>.
</MudText>
</div>);

Expand All @@ -32,7 +29,7 @@
return;
}

Snackbar.Configuration.PositionClass = Defaults.Classes.Position.BottomCenter;
Snackbar.Configuration.PositionClass = Defaults.Classes.Position.BottomLeft;
Snackbar.Add(
message: _banner,
severity: Severity.Normal,
Expand All @@ -43,6 +40,9 @@
options.RequireInteraction = true;
options.HideIcon = true;
options.Onclick = async _ => await Consent();
options.BackgroundBlurred = true;
options.ShowCloseIcon = true;
options.MaximumOpacity = 75;
});
}
}

0 comments on commit 0c4834b

Please sign in to comment.