static: fix hash not changing when invalid route is chosen
This commit is contained in:
parent
eff3208ff7
commit
2a50e36027
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -14,6 +14,25 @@ html {
|
||||||
--pf-c-nav__link--PaddingLeft: 0.5rem;
|
--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 {
|
.pf-c-background-image::before {
|
||||||
background-image: url("./flow_background.jpg");
|
background-image: url("./flow_background.jpg");
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
|
|
@ -32,7 +32,9 @@ export class ActionButton extends LitElement {
|
||||||
css`
|
css`
|
||||||
button {
|
button {
|
||||||
/* Have to use !important here, as buttons with pf-m-progress have transition already */
|
/* 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;
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
];
|
];
|
||||||
|
|
|
@ -77,6 +77,7 @@ export class RouterOutlet extends LitElement {
|
||||||
console.log(
|
console.log(
|
||||||
`passbook/router: route "${activeUrl}" not defined, defaulting to shell`
|
`passbook/router: route "${activeUrl}" not defined, defaulting to shell`
|
||||||
);
|
);
|
||||||
|
window.location.hash = `#${activeUrl}`;
|
||||||
selectedRoute = {
|
selectedRoute = {
|
||||||
url: RegExp(""),
|
url: RegExp(""),
|
||||||
element: html`<pb-site-shell url=${activeUrl}
|
element: html`<pb-site-shell url=${activeUrl}
|
||||||
|
|
Reference in New Issue