static: fix hash not changing when invalid route is chosen

This commit is contained in:
Jens Langhammer 2020-11-22 23:19:10 +01:00
parent eff3208ff7
commit 2a50e36027
5 changed files with 25 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -14,6 +14,25 @@ html {
--pf-c-nav__link--PaddingLeft: 0.5rem;
}
.pb-brand {
font-family: "DIN 1451 Std";
font-size: 4em;
display: flex;
flex-direction: row;
align-items: center;
margin-right: 0.5em;
color: var(--pf-global--Color--light-200);
}
.pb-brand > a:hover {
text-decoration: none;
}
.pb-brand > img {
max-height: 68px;
margin-right: 0.5em;
}
.pf-c-background-image::before {
background-image: url("./flow_background.jpg");
background-position: center;

View File

@ -32,7 +32,9 @@ export class ActionButton extends LitElement {
css`
button {
/* Have to use !important here, as buttons with pf-m-progress have transition already */
transition: all var(--pf-c-button--m-progress--TransitionDuration) ease 0s !important;
transition: all
var(--pf-c-button--m-progress--TransitionDuration) ease
0s !important;
}
`,
];

View File

@ -77,6 +77,7 @@ export class RouterOutlet extends LitElement {
console.log(
`passbook/router: route "${activeUrl}" not defined, defaulting to shell`
);
window.location.hash = `#${activeUrl}`;
selectedRoute = {
url: RegExp(""),
element: html`<pb-site-shell url=${activeUrl}