Implement 'internal submit button' to the 'Textbox' component. Remove separate submit to the Headcode search card.

Adjust the hover and active styles of the 'TrainService' expandable cards.
This commit is contained in:
2026-05-05 15:55:51 +01:00
parent 6a857c2d64
commit 3b91fad590
3 changed files with 85 additions and 16 deletions

View File

@@ -93,7 +93,7 @@
};
</script>
<div class="train-service">
<div class="train-service" class:isExpanded={isExpanded}>
<button class="summary" onclick={toggleExpand} type="button" aria-expanded={isExpanded}>
{#if loadingDetails}
<div class="loading-state"><div class="loading-spinner"></div></div>
@@ -241,10 +241,18 @@
filter: brightness(1.2);
}
.train-service:active .arrow {
filter: brightness(0.2);
}
@media (hover: hover) {
.train-service:hover {
.train-service:not(.isExpanded):hover {
filter: brightness(1.2);
}
.summary:hover .arrow {
filter: brightness(0.2);
}
}
/*
@@ -299,7 +307,7 @@
padding: 0;
margin: 0 0 0 auto;
height: 25px;
transition: all 0.9s;
transition: all 0.3s;
}
.expanded {